Skip to content

Commit

Permalink
Merge pull request #47 from hoodrunio/scheduled
Browse files Browse the repository at this point in the history
Scheduled Update
  • Loading branch information
Errorist79 authored Aug 29, 2024
2 parents 05b1d51 + 261a891 commit 57800f2
Show file tree
Hide file tree
Showing 51 changed files with 137 additions and 137 deletions.
8 changes: 4 additions & 4 deletions babylon/btccheckpoint/v1/btccheckpoint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package babylon.btccheckpoint.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/babylonchain/babylon/x/btccheckpoint/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btccheckpoint/types";

// Consider we have a Merkle tree with following structure:
// ROOT
Expand Down Expand Up @@ -36,7 +36,7 @@ message BTCSpvProof {
// Should have exactly 80 bytes
bytes confirming_btc_header = 4
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderBytes" ];
}

// Each provided OP_RETURN transaction can be identified by hash of block in
Expand All @@ -45,7 +45,7 @@ message TransactionKey {
uint32 index = 1;
bytes hash = 2
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderHashBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderHashBytes" ];
}

// Checkpoint can be composed from multiple transactions, so to identify whole
Expand Down Expand Up @@ -143,7 +143,7 @@ message BTCCheckpointInfo {
// youngest block of best submission
bytes best_submission_btc_block_hash = 3
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderHashBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderHashBytes" ];
// the BTC checkpoint transactions of the best submission
repeated TransactionInfo best_submission_transactions = 4;
// list of vigilantes' addresses of the best submission
Expand Down
2 changes: 1 addition & 1 deletion babylon/btccheckpoint/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package babylon.btccheckpoint.v1;
import "gogoproto/gogo.proto";
import "babylon/btccheckpoint/v1/params.proto";

option go_package = "github.com/babylonchain/babylon/x/btccheckpoint/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btccheckpoint/types";

// GenesisState defines the btccheckpoint module's genesis state.
message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; }
2 changes: 1 addition & 1 deletion babylon/btccheckpoint/v1/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package babylon.btccheckpoint.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/babylonchain/babylon/x/btccheckpoint/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btccheckpoint/types";

// Params defines the parameters for the module.
message Params {
Expand Down
2 changes: 1 addition & 1 deletion babylon/btccheckpoint/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "babylon/btccheckpoint/v1/params.proto";

option go_package = "github.com/babylonchain/babylon/x/btccheckpoint/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btccheckpoint/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion babylon/btccheckpoint/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "cosmos/msg/v1/msg.proto";
import "babylon/btccheckpoint/v1/params.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/babylonchain/babylon/x/btccheckpoint/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btccheckpoint/types";

// Msg defines the Msg service.
service Msg {
Expand Down
6 changes: 3 additions & 3 deletions babylon/btclightclient/v1/btclightclient.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package babylon.btclightclient.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btclightclient/types";

// BTCHeaderInfo is a structure that contains all relevant information about a
// BTC header
Expand All @@ -16,10 +16,10 @@ option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
message BTCHeaderInfo {
bytes header = 1
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderBytes" ];
bytes hash = 2
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderHashBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderHashBytes" ];
uint64 height = 3;
bytes work = 4
[ (gogoproto.customtype) = "cosmossdk.io/math.Uint" ];
Expand Down
2 changes: 1 addition & 1 deletion babylon/btclightclient/v1/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package babylon.btclightclient.v1;

import "babylon/btclightclient/v1/btclightclient.proto";

option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btclightclient/types";

// The header included in the event is the block in the history
// of the current mainchain to which we are rolling back to.
Expand Down
2 changes: 1 addition & 1 deletion babylon/btclightclient/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "babylon/btclightclient/v1/btclightclient.proto";
import "babylon/btclightclient/v1/params.proto";

option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btclightclient/types";

// GenesisState defines the btclightclient module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion babylon/btclightclient/v1/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package babylon.btclightclient.v1;
import "gogoproto/gogo.proto";


option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btclightclient/types";

// Params defines the parameters for the module.
message Params {
Expand Down
8 changes: 4 additions & 4 deletions babylon/btclightclient/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "babylon/btclightclient/v1/params.proto";

option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btclightclient/types";

// Query defines the gRPC querier service.
service Query {
Expand All @@ -28,7 +28,7 @@ service Query {

// ContainsBytes is a temporary method that
// checks whether a hash is maintained by the module.
// See discussion at https://github.com/babylonchain/babylon/pull/132
// See discussion at https://github.com/babylonlabs-io/babylon/pull/132
// for more details.
rpc ContainsBytes(QueryContainsBytesRequest)
returns (QueryContainsBytesResponse) {
Expand Down Expand Up @@ -77,7 +77,7 @@ message QueryHashesRequest {
message QueryHashesResponse {
repeated bytes hashes = 1
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderHashBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderHashBytes" ];

cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
Expand All @@ -86,7 +86,7 @@ message QueryHashesResponse {
message QueryContainsRequest {
bytes hash = 1
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderHashBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderHashBytes" ];
}

// QueryContainsResponse is response type for the Query/Contains RPC method.
Expand Down
4 changes: 2 additions & 2 deletions babylon/btclightclient/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos/msg/v1/msg.proto";
import "babylon/btclightclient/v1/params.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/babylonchain/babylon/x/btclightclient/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btclightclient/types";

// Msg defines the Msg service.
service Msg {
Expand All @@ -26,7 +26,7 @@ message MsgInsertHeaders {
string signer = 1;
repeated bytes headers = 2
[ (gogoproto.customtype) =
"github.com/babylonchain/babylon/types.BTCHeaderBytes" ];
"github.com/babylonlabs-io/babylon/types.BTCHeaderBytes" ];
}
// MsgInsertHeadersResponse defines the response for the InsertHeaders transaction
message MsgInsertHeadersResponse {}
Expand Down
24 changes: 12 additions & 12 deletions babylon/btcstaking/v1/btcstaking.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "cosmos/staking/v1beta1/staking.proto";
import "babylon/btcstaking/v1/pop.proto";

option go_package = "github.com/babylonchain/babylon/x/btcstaking/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";

// FinalityProvider defines a finality provider
message FinalityProvider {
Expand All @@ -21,7 +21,7 @@ message FinalityProvider {
];
// btc_pk is the Bitcoin secp256k1 PK of this finality provider
// the PK follows encoding in BIP-340 spec
bytes btc_pk = 4 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes btc_pk = 4 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// pop is the proof of possession of the btc_pk, where the BTC
// private key signs the bech32 bbn addr of the finality provider.
ProofOfPossessionBTC pop = 5;
Expand All @@ -41,7 +41,7 @@ message FinalityProvider {
message FinalityProviderWithMeta {
// btc_pk is the Bitcoin secp256k1 PK of thisfinality provider
// the PK follows encoding in BIP-340 spec
bytes btc_pk = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes btc_pk = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// height is the queried Babylon height
uint64 height = 2;
// voting_power is the voting power of this finality provider at the given height
Expand All @@ -64,14 +64,14 @@ message BTCDelegation {
string staker_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// btc_pk is the Bitcoin secp256k1 PK of this BTC delegation
// the PK follows encoding in BIP-340 spec
bytes btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// pop is the proof of possession of babylon_pk and btc_pk
ProofOfPossessionBTC pop = 3;
// fp_btc_pk_list is the list of BIP-340 PKs of the finality providers that
// this BTC delegation delegates to
// If there is more than 1 PKs, then this means the delegation is restaked
// to multiple finality providers
repeated bytes fp_btc_pk_list = 4 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
repeated bytes fp_btc_pk_list = 4 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// start_height is the start BTC height of the BTC delegation
// it is the start BTC height of the timelock
uint64 start_height = 5;
Expand All @@ -92,7 +92,7 @@ message BTCDelegation {
// delegator_sig is the signature on the slashing tx
// by the delegator (i.e., SK corresponding to btc_pk).
// It will be a part of the witness for the staking tx output.
bytes delegator_sig = 11 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340Signature" ];
bytes delegator_sig = 11 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340Signature" ];
// covenant_sigs is a list of adaptor signatures on the slashing tx
// by each covenant member
// It will be a part of the witness for the staking tx output.
Expand Down Expand Up @@ -121,11 +121,11 @@ message BTCUndelegation {
// It effectively proves that the delegator wants to unbond and thus
// Babylon will consider this BTC delegation unbonded. Delegator's BTC
// on Bitcoin will be unbonded after timelock
bytes delegator_unbonding_sig = 3 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340Signature" ];
bytes delegator_unbonding_sig = 3 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340Signature" ];
// delegator_slashing_sig is the signature on the slashing tx
// by the delegator (i.e., SK corresponding to btc_pk).
// It will be a part of the witness for the unbonding tx output.
bytes delegator_slashing_sig = 4 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340Signature" ];
bytes delegator_slashing_sig = 4 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340Signature" ];
// covenant_slashing_sigs is a list of adaptor signatures on the slashing tx
// by each covenant member
// It will be a part of the witness for the staking tx output.
Expand Down Expand Up @@ -165,15 +165,15 @@ enum BTCDelegationStatus {

// SignatureInfo is a BIP-340 signature together with its signer's BIP-340 PK
message SignatureInfo {
bytes pk = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes sig = 2 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340Signature" ];
bytes pk = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
bytes sig = 2 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340Signature" ];
}

// CovenantAdaptorSignatures is a list adaptor signatures signed by the
// covenant with different finality provider's public keys as encryption keys
message CovenantAdaptorSignatures {
// cov_pk is the public key of the covenant emulator, used as the public key of the adaptor signature
bytes cov_pk = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes cov_pk = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// adaptor_sigs is a list of adaptor signatures, each encrypted by a restaked BTC finality provider's public key
repeated bytes adaptor_sigs = 2;
}
Expand All @@ -190,7 +190,7 @@ message SelectiveSlashingEvidence {
string staking_tx_hash = 1;
// fp_btc_pk is the BTC PK of the finality provider who
// launches the selective slashing offence
bytes fp_btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes fp_btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// recovered_fp_btc_sk is the finality provider's BTC SK recovered from
// the covenant adaptor/Schnorr signature pair. It is the consequence
// of selective slashing.
Expand Down
4 changes: 2 additions & 2 deletions babylon/btcstaking/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package babylon.btcstaking.v1;
import "gogoproto/gogo.proto";
import "babylon/btcstaking/v1/btcstaking.proto";

option go_package = "github.com/babylonchain/babylon/x/btcstaking/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";

// EventNewFinalityProvider is the event emitted when a finality provider is created
message EventNewFinalityProvider { FinalityProvider fp = 1; }
Expand Down Expand Up @@ -37,7 +37,7 @@ message EventPowerDistUpdate {
// is slashed
// TODO: unify with existing slashing events
message EventSlashedFinalityProvider {
bytes pk = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes pk = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
}

// ev is the event that affects voting power distribution
Expand Down
8 changes: 4 additions & 4 deletions babylon/btcstaking/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "babylon/btcstaking/v1/btcstaking.proto";
import "babylon/btcstaking/v1/incentive.proto";
import "babylon/btcstaking/v1/events.proto";

option go_package = "github.com/babylonchain/babylon/x/btcstaking/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";

// GenesisState defines the btcstaking module's genesis state.
message GenesisState {
Expand Down Expand Up @@ -36,7 +36,7 @@ message VotingPowerFP {
// block_height is the height of the block the voting power was stored.
uint64 block_height = 1;
// fp_btc_pk the finality provider btc public key.
bytes fp_btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes fp_btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// voting_power is the power of the finality provider at this specific block height.
uint64 voting_power = 3;
}
Expand All @@ -62,9 +62,9 @@ message BTCDelegator {
// idx the btc delegator index.
BTCDelegatorDelegationIndex idx = 1;
// fp_btc_pk the finality provider btc public key.
bytes fp_btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes fp_btc_pk = 2 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// del_btc_pk the delegator btc public key.
bytes del_btc_pk = 3 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes del_btc_pk = 3 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
}

// EventIndex contains the event and its index.
Expand Down
6 changes: 3 additions & 3 deletions babylon/btcstaking/v1/incentive.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package babylon.btcstaking.v1;
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/babylonchain/babylon/x/btcstaking/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";

// VotingPowerDistCache is the cache for voting power distribution of finality providers
// and their BTC delegations at a height
Expand All @@ -18,7 +18,7 @@ message VotingPowerDistCache {
message FinalityProviderDistInfo {
// btc_pk is the Bitcoin secp256k1 PK of this finality provider
// the PK follows encoding in BIP-340 spec
bytes btc_pk = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes btc_pk = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// addr is the address to receive commission from delegations.
string addr = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// commission defines the commission rate of finality provider
Expand All @@ -36,7 +36,7 @@ message FinalityProviderDistInfo {
message BTCDelDistInfo {
// btc_pk is the Bitcoin secp256k1 PK of this BTC delegation
// the PK follows encoding in BIP-340 spec
bytes btc_pk = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
bytes btc_pk = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// staker_addr is the address to receive rewards from BTC delegation.
string staker_addr = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// staking_tx_hash is the staking tx hash of the BTC delegation
Expand Down
4 changes: 2 additions & 2 deletions babylon/btcstaking/v1/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ package babylon.btcstaking.v1;
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/babylonchain/babylon/x/btcstaking/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";

// Params defines the parameters for the module.
message Params {
option (gogoproto.goproto_stringer) = false;

// covenant_pks is the list of public keys held by the covenant committee
// each PK follows encoding in BIP-340 spec on Bitcoin
repeated bytes covenant_pks = 1 [ (gogoproto.customtype) = "github.com/babylonchain/babylon/types.BIP340PubKey" ];
repeated bytes covenant_pks = 1 [ (gogoproto.customtype) = "github.com/babylonlabs-io/babylon/types.BIP340PubKey" ];
// covenant_quorum is the minimum number of signatures needed for the covenant
// multisignature
uint32 covenant_quorum = 2;
Expand Down
2 changes: 1 addition & 1 deletion babylon/btcstaking/v1/pop.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package babylon.btcstaking.v1;

option go_package = "github.com/babylonchain/babylon/x/btcstaking/types";
option go_package = "github.com/babylonlabs-io/babylon/x/btcstaking/types";

// BTCSigType indicates the type of btc_sig in a pop
enum BTCSigType {
Expand Down
Loading

0 comments on commit 57800f2

Please sign in to comment.