From f5287b2f499d473092f0d57beee739cca07e3f5a Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Wed, 16 Oct 2024 15:06:07 +0200 Subject: [PATCH 1/2] Babylonchain rename (#52) Rename some babylonchain left-overs --- Makefile | 2 +- demo/Makefile | 4 +- docs/proto/proto-docs.md | 66 +-- .../babylon/v1beta1/babylon.proto | 4 +- .../babylon/v1beta1/genesis.proto | 4 +- .../babylon/v1beta1/query.proto | 6 +- .../babylon/v1beta1/tx.proto | 6 +- proto/buf.md | 6 +- proto/buf.yaml | 2 +- scripts/protocgen.sh | 2 +- x/babylon/types/babylon.pb.go | 56 +- x/babylon/types/genesis.pb.go | 42 +- x/babylon/types/query.pb.go | 68 +-- x/babylon/types/query.pb.gw.go | 4 +- x/babylon/types/scheduler.pb.go | 491 ------------------ x/babylon/types/tx.pb.go | 72 +-- 16 files changed, 172 insertions(+), 663 deletions(-) rename proto/{babylonchain => babylonlabs}/babylon/v1beta1/babylon.proto (96%) rename proto/{babylonchain => babylonlabs}/babylon/v1beta1/genesis.proto (83%) rename proto/{babylonchain => babylonlabs}/babylon/v1beta1/query.proto (82%) rename proto/{babylonchain => babylonlabs}/babylon/v1beta1/tx.proto (90%) delete mode 100644 x/babylon/types/scheduler.pb.go diff --git a/Makefile b/Makefile index f7ebd3d..309f0bb 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build-linux-static: $(MAKE) -C demo build-linux-static build-docker: - $(DOCKER) build --tag babylonchain/bcd -f Dockerfile \ + $(DOCKER) build --tag babylonlabs-io/bcd -f Dockerfile \ $(shell git rev-parse --show-toplevel) ######################################## diff --git a/demo/Makefile b/demo/Makefile index 881f83b..392d17d 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -98,8 +98,8 @@ build-vendored: build-linux-static: go mod vendor # quick hack to make local dependencies work in Docker mkdir -p $(BUILD_DIR) - docker build --tag babylonchain/bcd:local ./ - docker create --name bcd_temp babylonchain/bcd:local + docker build --tag babylonlabs-io/bcd:local ./ + docker create --name bcd_temp babylonlabs-io/bcd:local docker cp bcd_temp:/usr/bin/bcd $(BUILD_DIR)/ docker rm -f bcd_temp rm -rf vendor/ diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md index 48c7acd..0a9d8e6 100644 --- a/docs/proto/proto-docs.md +++ b/docs/proto/proto-docs.md @@ -4,36 +4,36 @@ ## Table of Contents -- [babylonchain/babylon/v1beta1/babylon.proto](#babylonchain/babylon/v1beta1/babylon.proto) - - [Params](#babylonchain.babylon.v1beta1.Params) +- [babylonlabs/babylon/v1beta1/babylon.proto](#babylonlabs/babylon/v1beta1/babylon.proto) + - [Params](#babylonlabs.babylon.v1beta1.Params) -- [babylonchain/babylon/v1beta1/genesis.proto](#babylonchain/babylon/v1beta1/genesis.proto) - - [GenesisState](#babylonchain.babylon.v1beta1.GenesisState) +- [babylonlabs/babylon/v1beta1/genesis.proto](#babylonlabs/babylon/v1beta1/genesis.proto) + - [GenesisState](#babylonlabs.babylon.v1beta1.GenesisState) -- [babylonchain/babylon/v1beta1/query.proto](#babylonchain/babylon/v1beta1/query.proto) - - [QueryParamsRequest](#babylonchain.babylon.v1beta1.QueryParamsRequest) - - [QueryParamsResponse](#babylonchain.babylon.v1beta1.QueryParamsResponse) +- [babylonlabs/babylon/v1beta1/query.proto](#babylonlabs/babylon/v1beta1/query.proto) + - [QueryParamsRequest](#babylonlabs.babylon.v1beta1.QueryParamsRequest) + - [QueryParamsResponse](#babylonlabs.babylon.v1beta1.QueryParamsResponse) - - [Query](#babylonchain.babylon.v1beta1.Query) + - [Query](#babylonlabs.babylon.v1beta1.Query) -- [babylonchain/babylon/v1beta1/tx.proto](#babylonchain/babylon/v1beta1/tx.proto) - - [MsgUpdateParams](#babylonchain.babylon.v1beta1.MsgUpdateParams) - - [MsgUpdateParamsResponse](#babylonchain.babylon.v1beta1.MsgUpdateParamsResponse) +- [babylonlabs/babylon/v1beta1/tx.proto](#babylonlabs/babylon/v1beta1/tx.proto) + - [MsgUpdateParams](#babylonlabs.babylon.v1beta1.MsgUpdateParams) + - [MsgUpdateParamsResponse](#babylonlabs.babylon.v1beta1.MsgUpdateParamsResponse) - - [Msg](#babylonchain.babylon.v1beta1.Msg) + - [Msg](#babylonlabs.babylon.v1beta1.Msg) - [Scalar Value Types](#scalar-value-types) - +

Top

-## babylonchain/babylon/v1beta1/babylon.proto +## babylonlabs/babylon/v1beta1/babylon.proto - + ### Params Params defines the parameters for the x/babylon module. @@ -60,14 +60,14 @@ Params defines the parameters for the x/babylon module. - +

Top

-## babylonchain/babylon/v1beta1/genesis.proto +## babylonlabs/babylon/v1beta1/genesis.proto - + ### GenesisState GenesisState defines babylon module's genesis state. @@ -75,7 +75,7 @@ GenesisState defines babylon module's genesis state. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| `params` | [Params](#babylonchain.babylon.v1beta1.Params) | | | +| `params` | [Params](#babylonlabs.babylon.v1beta1.Params) | | | @@ -91,14 +91,14 @@ GenesisState defines babylon module's genesis state. - +

Top

-## babylonchain/babylon/v1beta1/query.proto +## babylonlabs/babylon/v1beta1/query.proto - + ### QueryParamsRequest QueryParamsRequest is the request type for the @@ -109,7 +109,7 @@ Query/Params RPC method - + ### QueryParamsResponse QueryParamsResponse is the response type for the @@ -118,7 +118,7 @@ Query/Params RPC method | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| `params` | [Params](#babylonchain.babylon.v1beta1.Params) | | | +| `params` | [Params](#babylonlabs.babylon.v1beta1.Params) | | | @@ -131,27 +131,27 @@ Query/Params RPC method - + ### Query Query provides defines the gRPC querier service | Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | | ----------- | ------------ | ------------- | ------------| ------- | -------- | -| `Params` | [QueryParamsRequest](#babylonchain.babylon.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#babylonchain.babylon.v1beta1.QueryParamsResponse) | Params queries the parameters of x/babylon module. | GET|/babylonchain/babylon/v1beta1/params| +| `Params` | [QueryParamsRequest](#babylonlabs.babylon.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#babylonlabs.babylon.v1beta1.QueryParamsResponse) | Params queries the parameters of x/babylon module. | GET|/babylonlabs/babylon/v1beta1/params| - +

Top

-## babylonchain/babylon/v1beta1/tx.proto +## babylonlabs/babylon/v1beta1/tx.proto - + ### MsgUpdateParams MsgUpdateParams is the Msg/UpdateParams request type. @@ -160,7 +160,7 @@ MsgUpdateParams is the Msg/UpdateParams request type. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `authority` | [string](#string) | | authority is the address that controls the module (defaults to x/gov unless overwritten). | -| `params` | [Params](#babylonchain.babylon.v1beta1.Params) | | params defines the x/auth parameters to update. +| `params` | [Params](#babylonlabs.babylon.v1beta1.Params) | | params defines the x/auth parameters to update. NOTE: All parameters must be supplied. | @@ -169,7 +169,7 @@ NOTE: All parameters must be supplied. | - + ### MsgUpdateParamsResponse MsgUpdateParamsResponse defines the response structure for executing a @@ -186,14 +186,14 @@ MsgUpdateParams message. - + ### Msg Msg defines the wasm Msg service. | Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | | ----------- | ------------ | ------------- | ------------| ------- | -------- | -| `UpdateParams` | [MsgUpdateParams](#babylonchain.babylon.v1beta1.MsgUpdateParams) | [MsgUpdateParamsResponse](#babylonchain.babylon.v1beta1.MsgUpdateParamsResponse) | UpdateParams defines a (governance) operation for updating the x/auth module parameters. The authority defaults to the x/gov module account. | | +| `UpdateParams` | [MsgUpdateParams](#babylonlabs.babylon.v1beta1.MsgUpdateParams) | [MsgUpdateParamsResponse](#babylonlabs.babylon.v1beta1.MsgUpdateParamsResponse) | UpdateParams defines a (governance) operation for updating the x/auth module parameters. The authority defaults to the x/gov module account. | | diff --git a/proto/babylonchain/babylon/v1beta1/babylon.proto b/proto/babylonlabs/babylon/v1beta1/babylon.proto similarity index 96% rename from proto/babylonchain/babylon/v1beta1/babylon.proto rename to proto/babylonlabs/babylon/v1beta1/babylon.proto index c74769a..37cdeb3 100644 --- a/proto/babylonchain/babylon/v1beta1/babylon.proto +++ b/proto/babylonlabs/babylon/v1beta1/babylon.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package babylonchain.babylon.v1beta1; +package babylonlabs.babylon.v1beta1; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; @@ -24,4 +24,4 @@ message Params { // max_gas_begin_blocker defines the maximum gas that can be spent in a // contract sudo callback uint32 max_gas_begin_blocker = 4; -} \ No newline at end of file +} diff --git a/proto/babylonchain/babylon/v1beta1/genesis.proto b/proto/babylonlabs/babylon/v1beta1/genesis.proto similarity index 83% rename from proto/babylonchain/babylon/v1beta1/genesis.proto rename to proto/babylonlabs/babylon/v1beta1/genesis.proto index 082df8e..a41edb6 100644 --- a/proto/babylonchain/babylon/v1beta1/genesis.proto +++ b/proto/babylonlabs/babylon/v1beta1/genesis.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package babylonchain.babylon.v1beta1; +package babylonlabs.babylon.v1beta1; -import "babylonchain/babylon/v1beta1/babylon.proto"; +import "babylonlabs/babylon/v1beta1/babylon.proto"; import "gogoproto/gogo.proto"; import "amino/amino.proto"; diff --git a/proto/babylonchain/babylon/v1beta1/query.proto b/proto/babylonlabs/babylon/v1beta1/query.proto similarity index 82% rename from proto/babylonchain/babylon/v1beta1/query.proto rename to proto/babylonlabs/babylon/v1beta1/query.proto index 3991a31..6337445 100644 --- a/proto/babylonchain/babylon/v1beta1/query.proto +++ b/proto/babylonlabs/babylon/v1beta1/query.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package babylonchain.babylon.v1beta1; +package babylonlabs.babylon.v1beta1; -import "babylonchain/babylon/v1beta1/babylon.proto"; +import "babylonlabs/babylon/v1beta1/babylon.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "amino/amino.proto"; @@ -14,7 +14,7 @@ option (gogoproto.equal_all) = false; service Query { // Params queries the parameters of x/babylon module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/babylonchain/babylon/v1beta1/params"; + option (google.api.http).get = "/babylonlabs/babylon/v1beta1/params"; } } diff --git a/proto/babylonchain/babylon/v1beta1/tx.proto b/proto/babylonlabs/babylon/v1beta1/tx.proto similarity index 90% rename from proto/babylonchain/babylon/v1beta1/tx.proto rename to proto/babylonlabs/babylon/v1beta1/tx.proto index 8771b10..7d6a7da 100644 --- a/proto/babylonchain/babylon/v1beta1/tx.proto +++ b/proto/babylonlabs/babylon/v1beta1/tx.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package babylonchain.babylon.v1beta1; +package babylonlabs.babylon.v1beta1; import "gogoproto/gogo.proto"; import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; -import "babylonchain/babylon/v1beta1/babylon.proto"; +import "babylonlabs/babylon/v1beta1/babylon.proto"; option go_package = "github.com/babylonlabs-io/babylon-sdk/x/babylon/types"; option (gogoproto.goproto_getters_all) = false; @@ -33,4 +33,4 @@ message MsgUpdateParams { } // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. -message MsgUpdateParamsResponse {} \ No newline at end of file +message MsgUpdateParamsResponse {} diff --git a/proto/buf.md b/proto/buf.md index 8b572a5..bd26ed1 100644 --- a/proto/buf.md +++ b/proto/buf.md @@ -10,11 +10,11 @@ The `buf` CLI comes with an export command. Use `buf export -h` for details Download Babylon SDK protos for a commit: ```bash -## todo: not published, yet -buf export buf.build/babylonchain/babylon-sdk:${commit} --output ./tmp +## TODO: not published, yet +buf export buf.build/babylonlabs/babylon-sdk:${commit} --output ./tmp ``` Download all project protos: ```bash buf export . --output ./tmp -``` \ No newline at end of file +``` diff --git a/proto/buf.yaml b/proto/buf.yaml index 65fb61d..611b29d 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,5 +1,5 @@ version: v1 -name: buf.build/babylonchain/babylon-sdk +name: buf.build/babylonlabs/babylon-sdk deps: - buf.build/cosmos/cosmos-proto - buf.build/cosmos/cosmos-sdk:v0.47.0 diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 1970b22..0c27187 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -8,7 +8,7 @@ protoc_install_proto_gen_doc() { } cd proto -proto_dirs=$(find ./babylonchain -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +proto_dirs=$(find ./babylonlabs -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do if grep "option go_package" $file &> /dev/null ; then diff --git a/x/babylon/types/babylon.pb.go b/x/babylon/types/babylon.pb.go index eb4685c..a9ee6a8 100644 --- a/x/babylon/types/babylon.pb.go +++ b/x/babylon/types/babylon.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylonchain/babylon/v1beta1/babylon.proto +// source: babylonlabs/babylon/v1beta1/babylon.proto package types @@ -41,7 +41,7 @@ func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_b5add0b76ad5fde9, []int{0} + return fileDescriptor_9eb75d1c9a41f85f, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -71,37 +71,37 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo func init() { - proto.RegisterType((*Params)(nil), "babylonchain.babylon.v1beta1.Params") + proto.RegisterType((*Params)(nil), "babylonlabs.babylon.v1beta1.Params") } func init() { - proto.RegisterFile("babylonchain/babylon/v1beta1/babylon.proto", fileDescriptor_b5add0b76ad5fde9) + proto.RegisterFile("babylonlabs/babylon/v1beta1/babylon.proto", fileDescriptor_9eb75d1c9a41f85f) } -var fileDescriptor_b5add0b76ad5fde9 = []byte{ - // 341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 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0x41, 0x34, 0xc5, 0x4a, - 0xc3, 0x88, 0x0b, 0xb6, 0xe9, 0x2d, 0x6d, 0xf1, 0xd6, 0x88, 0xa6, 0x7d, 0x03, 0xaf, 0xab, 0xef, - 0xbc, 0xfd, 0xa5, 0xfa, 0x9e, 0x0b, 0x48, 0xb8, 0x9e, 0x6e, 0xba, 0xff, 0x6d, 0x71, 0xd7, 0x89, - 0xa6, 0x17, 0x96, 0x5e, 0x97, 0x77, 0xbd, 0xdd, 0x14, 0x26, 0x98, 0x81, 0xc2, 0x24, 0x66, 0x5c, - 0x60, 0x92, 0x48, 0x3a, 0x8a, 0xb3, 0xa0, 0xdc, 0x74, 0x5b, 0x3b, 0x3d, 0x3f, 0x85, 0xc9, 0x25, - 0xa8, 0x68, 0x59, 0x45, 0xa6, 0x39, 0x2d, 0x7f, 0x3f, 0x1f, 0xb8, 0xd1, 0xf5, 0xec, 0x0b, 0x39, - 0x2f, 0x39, 0x72, 0x66, 0x39, 0x72, 0xe7, 0x39, 0x72, 0x3f, 0x73, 0xe4, 0x3e, 0x2d, 0x90, 0x33, - 0x5f, 0x20, 0xe7, 0x63, 0x81, 0x9c, 0xdb, 0x13, 0xc6, 0xf5, 0xf0, 0x81, 0x74, 0xa8, 0x4c, 0x8b, - 0xd3, 0x26, 0x40, 0x54, 0x9b, 0xcb, 0x22, 0xb6, 0xd5, 0x60, 0x14, 0x4e, 0x7e, 0xff, 0x81, 0x9e, - 0x8e, 0x63, 0x45, 0x2a, 0xab, 0x7b, 0x1d, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x14, 0x03, - 0x98, 0x2c, 0x02, 0x00, 0x00, +var fileDescriptor_9eb75d1c9a41f85f = []byte{ + // 339 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xb1, 0x4e, 0x32, 0x41, + 0x14, 0x85, 0x77, 0xf8, 0x09, 0xc9,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99, 0xf2, 0x2a, 0xfa, 0xce, + 0xdd, 0x9f, 0xa3, 0xef, 0x45, 0x0a, 0xb1, 0xd0, 0xe3, 0x75, 0xf6, 0xbf, 0x0d, 0xec, 0x3a, 0xd5, + 0xec, 0xc2, 0xb6, 0x57, 0xe1, 0x1d, 0x77, 0x3b, 0x81, 0x11, 0xe1, 0xa0, 0x08, 0x8d, 0xb8, 0x48, + 0x09, 0x8d, 0x25, 0x1b, 0x44, 0x99, 0x5f, 0x6e, 0xa0, 0xe6, 0x56, 0xd7, 0x4b, 0x60, 0x74, 0x09, + 0x2a, 0x9c, 0x5b, 0xa1, 0x71, 0x4e, 0xcb, 0x3f, 0x2f, 0x07, 0x28, 0xbc, 0x9e, 0x7c, 0x63, 0xe7, + 0x35, 0xc7, 0xce, 0x24, 0xc7, 0x68, 0x9a, 0x63, 0xf4, 0x95, 0x63, 0xf4, 0x3c, 0xc3, 0xce, 0x74, + 0x86, 0x9d, 0xcf, 0x19, 0x76, 0x6e, 0x4f, 0xb8, 0xd0, 0x0f, 0x8f, 0xb4, 0xcd, 0x64, 0x12, 0x2c, + 0x9d, 0xb2, 0x25, 0x64, 0x21, 0x5b, 0xaa, 0x3f, 0x08, 0x46, 0x7f, 0x6f, 0xa0, 0xc7, 0xc3, 0x48, + 0xd1, 0xca, 0xe2, 0x5e, 0xc7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xe1, 0x4c, 0x30, 0x2a, + 0x02, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { diff --git a/x/babylon/types/genesis.pb.go b/x/babylon/types/genesis.pb.go index 36d083b..c76628c 100644 --- a/x/babylon/types/genesis.pb.go +++ b/x/babylon/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylonchain/babylon/v1beta1/genesis.proto +// source: babylonlabs/babylon/v1beta1/genesis.proto package types @@ -33,7 +33,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_9588c8d0e398730c, []int{0} + return fileDescriptor_80ccb1a1540fa0af, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,30 +63,30 @@ func (m *GenesisState) XXX_DiscardUnknown() { var xxx_messageInfo_GenesisState proto.InternalMessageInfo func init() { - proto.RegisterType((*GenesisState)(nil), "babylonchain.babylon.v1beta1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "babylonlabs.babylon.v1beta1.GenesisState") } func init() { - proto.RegisterFile("babylonchain/babylon/v1beta1/genesis.proto", fileDescriptor_9588c8d0e398730c) + proto.RegisterFile("babylonlabs/babylon/v1beta1/genesis.proto", fileDescriptor_80ccb1a1540fa0af) } -var fileDescriptor_9588c8d0e398730c = []byte{ - // 239 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4a, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0x4b, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x87, 0x72, 0xf4, 0xcb, 0x0c, 0x93, 0x52, - 0x4b, 0x12, 0x0d, 0xf5, 0xd3, 0x53, 0xf3, 0x52, 0x8b, 0x33, 0x8b, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, - 0xf2, 0x85, 0x64, 0x90, 0xd5, 0xea, 0x41, 0x39, 0x7a, 0x50, 0xb5, 0x52, 0xf8, 0x4d, 0x82, 0xa9, - 0x06, 0x9b, 0x24, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x66, 0xea, 0x83, 0x58, 0x50, 0x51, 0xc1, - 0xc4, 0xdc, 0xcc, 0xbc, 0x7c, 0x7d, 0x30, 0x09, 0x11, 0x52, 0x8a, 0xe5, 0xe2, 0x71, 0x87, 0xb8, - 0x21, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0xc8, 0x9d, 0x8b, 0xad, 0x20, 0xb1, 0x28, 0x31, 0xb7, 0x58, - 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x45, 0x0f, 0x9f, 0x9b, 0xf4, 0x02, 0xc0, 0x6a, 0x9d, - 0x38, 0x4f, 0xdc, 0x93, 0x67, 0x58, 0xf1, 0x7c, 0x83, 0x16, 0x63, 0x10, 0x54, 0xbb, 0x15, 0xcb, - 0x8b, 0x05, 0xf2, 0x8c, 0x4e, 0xe1, 0x27, 0x1e, 0xca, 0x31, 0xac, 0x78, 0x24, 0xc7, 0x70, 0xe2, - 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, - 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xa6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, - 0x7a, 0xc9, 0xf9, 0xb9, 0x30, 0x3f, 0xe4, 0x24, 0x26, 0x15, 0xeb, 0x66, 0xe6, 0xc3, 0xb8, 0xba, - 0xc5, 0x29, 0xd9, 0xfa, 0x15, 0x70, 0x0f, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x9d, - 0x6f, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xe4, 0x90, 0x56, 0x5f, 0x01, 0x00, 0x00, +var fileDescriptor_80ccb1a1540fa0af = []byte{ + // 235 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4c, 0x4a, 0x4c, 0xaa, + 0xcc, 0xc9, 0xcf, 0xcb, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xb2, 0xf5, 0xcb, 0x0c, 0x93, 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, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x5d, 0x6f, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x79, 0x93, 0x31, 0x6f, 0x5b, 0x01, 0x00, 0x00, } func (this *GenesisState) Equal(that interface{}) bool { diff --git a/x/babylon/types/query.pb.go b/x/babylon/types/query.pb.go index a14a560..d7ca8f4 100644 --- a/x/babylon/types/query.pb.go +++ b/x/babylon/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylonchain/babylon/v1beta1/query.proto +// source: babylonlabs/babylon/v1beta1/query.proto package types @@ -39,7 +39,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f2b0bdba2b574100, []int{0} + return fileDescriptor_0701b38a43c6fcb7, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +78,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f2b0bdba2b574100, []int{1} + return fileDescriptor_0701b38a43c6fcb7, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -108,36 +108,36 @@ func (m *QueryParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "babylonchain.babylon.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "babylonchain.babylon.v1beta1.QueryParamsResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "babylonlabs.babylon.v1beta1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "babylonlabs.babylon.v1beta1.QueryParamsResponse") } func init() { - proto.RegisterFile("babylonchain/babylon/v1beta1/query.proto", fileDescriptor_f2b0bdba2b574100) -} - -var fileDescriptor_f2b0bdba2b574100 = []byte{ - // 317 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0x4b, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x87, 0x72, 0xf4, 0xcb, 0x0c, 0x93, 0x52, - 0x4b, 0x12, 0x0d, 0xf5, 0x0b, 0x4b, 0x53, 0x8b, 0x2a, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, - 0x64, 0x90, 0x55, 0xea, 0x41, 0x39, 0x7a, 0x50, 0x95, 0x52, 0x5a, 0x78, 0xcd, 0x81, 0xa9, 0x06, - 0x9b, 0x24, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x66, 0xea, 0x83, 0x58, 0x50, 0x51, 0x99, 0xf4, - 0xfc, 0xfc, 0xf4, 0x9c, 0x54, 0xfd, 0xc4, 0x82, 0x4c, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, 0xc4, - 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xa8, 0xac, 0x60, 0x62, 0x6e, 0x66, 0x5e, 0xbe, 0x3e, 0x98, 0x84, - 0x08, 0x29, 0x89, 0x70, 0x09, 0x05, 0x82, 0xdc, 0x17, 0x90, 0x58, 0x94, 0x98, 0x5b, 0x1c, 0x94, - 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0xa2, 0x14, 0xc7, 0x25, 0x8c, 0x22, 0x5a, 0x5c, 0x90, 0x9f, 0x57, - 0x9c, 0x2a, 0xe4, 0xce, 0xc5, 0x56, 0x00, 0x16, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x52, - 0xd1, 0xc3, 0xe7, 0x1d, 0x3d, 0x88, 0x6e, 0x27, 0xce, 0x13, 0xf7, 0xe4, 0x19, 0x56, 0x3c, 0xdf, - 0xa0, 0xc5, 0x18, 0x04, 0xd5, 0x6e, 0xb4, 0x94, 0x91, 0x8b, 0x15, 0x6c, 0x81, 0xd0, 0x6c, 0x46, - 0x2e, 0x36, 0x88, 0x3a, 0x21, 0x03, 0xfc, 0xa6, 0x61, 0x3a, 0x53, 0xca, 0x90, 0x04, 0x1d, 0x10, - 0x2f, 0x28, 0xe9, 0x34, 0x5d, 0x7e, 0x32, 0x99, 0x49, 0x4d, 0x48, 0x45, 0x1f, 0x6f, 0x58, 0x43, - 0xdc, 0xe9, 0x14, 0x7e, 0xe2, 0xa1, 0x1c, 0xc3, 0x8a, 0x47, 0x72, 0x0c, 0x27, 0x1e, 0xc9, 0x31, - 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, - 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x9a, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, - 0x9f, 0x0b, 0x33, 0x24, 0x27, 0x31, 0xa9, 0x58, 0x37, 0x33, 0x1f, 0xc6, 0xd5, 0x2d, 0x4e, 0xc9, - 0xd6, 0xaf, 0x80, 0xdb, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x7d, 0x63, 0x40, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x5c, 0x16, 0x1a, 0x3a, 0x02, 0x00, 0x00, + proto.RegisterFile("babylonlabs/babylon/v1beta1/query.proto", fileDescriptor_0701b38a43c6fcb7) +} + +var fileDescriptor_0701b38a43c6fcb7 = []byte{ + // 312 bytes of a gzipped FileDescriptorProto + 0x1f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0x8b, 0x15, 0x6c, 0xbe, 0xd0, 0x0c, 0x46, 0x2e, + 0x36, 0x88, 0x3a, 0x21, 0x7d, 0xbc, 0x86, 0x61, 0x3a, 0x52, 0xca, 0x80, 0x78, 0x0d, 0x10, 0xf7, + 0x2b, 0x69, 0x37, 0x5d, 0x7e, 0x32, 0x99, 0x49, 0x55, 0x48, 0x59, 0x1f, 0x5f, 0x38, 0x43, 0x1c, + 0xe9, 0x14, 0x7e, 0xe2, 0xa1, 0x1c, 0xc3, 0x8a, 0x47, 0x72, 0x0c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, + 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, + 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x9a, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, + 0x8b, 0x6c, 0xa0, 0x6e, 0x66, 0x3e, 0x8c, 0xab, 0x5b, 0x9c, 0x92, 0xad, 0x5f, 0x01, 0xb7, 0xa1, + 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0xf2, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x7d, 0xce, 0x58, 0x53, 0x33, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -166,7 +166,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/babylonchain.babylon.v1beta1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/babylonlabs.babylon.v1beta1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -201,7 +201,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylonchain.babylon.v1beta1.Query/Params", + FullMethod: "/babylonlabs.babylon.v1beta1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -210,7 +210,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "babylonchain.babylon.v1beta1.Query", + ServiceName: "babylonlabs.babylon.v1beta1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -219,7 +219,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "babylonchain/babylon/v1beta1/query.proto", + Metadata: "babylonlabs/babylon/v1beta1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/babylon/types/query.pb.gw.go b/x/babylon/types/query.pb.gw.go index 71775e3..948e2ca 100644 --- a/x/babylon/types/query.pb.gw.go +++ b/x/babylon/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: babylonchain/babylon/v1beta1/query.proto +// source: babylonlabs/babylon/v1beta1/query.proto /* Package types is a reverse proxy. @@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylonchain", "babylon", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"babylonlabs", "babylon", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/babylon/types/scheduler.pb.go b/x/babylon/types/scheduler.pb.go deleted file mode 100644 index c5e31fc..0000000 --- a/x/babylon/types/scheduler.pb.go +++ /dev/null @@ -1,491 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylonchain/babylon/v1beta1/scheduler.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// ScheduledWork is XX -type ScheduledWork struct { - Repeat bool `protobuf:"varint,1,opt,name=repeat,proto3" json:"repeat,omitempty"` -} - -func (m *ScheduledWork) Reset() { *m = ScheduledWork{} } -func (m *ScheduledWork) String() string { return proto.CompactTextString(m) } -func (*ScheduledWork) ProtoMessage() {} -func (*ScheduledWork) Descriptor() ([]byte, []int) { - return fileDescriptor_cdcaeea24db3b88c, []int{0} -} - -func (m *ScheduledWork) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *ScheduledWork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScheduledWork.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *ScheduledWork) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScheduledWork.Merge(m, src) -} - -func (m *ScheduledWork) XXX_Size() int { - return m.Size() -} - -func (m *ScheduledWork) XXX_DiscardUnknown() { - xxx_messageInfo_ScheduledWork.DiscardUnknown(m) -} - -var xxx_messageInfo_ScheduledWork proto.InternalMessageInfo - -// ValidatorAddress payload data to be used with the scheduler -type ValidatorAddress struct { - // Address is the ValAddress bech32 string - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *ValidatorAddress) Reset() { *m = ValidatorAddress{} } -func (m *ValidatorAddress) String() string { return proto.CompactTextString(m) } -func (*ValidatorAddress) ProtoMessage() {} -func (*ValidatorAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_cdcaeea24db3b88c, []int{1} -} - -func (m *ValidatorAddress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} - -func (m *ValidatorAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorAddress.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} - -func (m *ValidatorAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorAddress.Merge(m, src) -} - -func (m *ValidatorAddress) XXX_Size() int { - return m.Size() -} - -func (m *ValidatorAddress) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorAddress.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorAddress proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ScheduledWork)(nil), "babylonchain.babylon.v1beta1.ScheduledWork") - proto.RegisterType((*ValidatorAddress)(nil), "babylonchain.babylon.v1beta1.ValidatorAddress") -} - -func init() { - proto.RegisterFile("babylonchain/babylon/v1beta1/scheduler.proto", fileDescriptor_cdcaeea24db3b88c) -} - -var fileDescriptor_cdcaeea24db3b88c = []byte{ - // 252 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0x4b, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x87, 0x72, 0xf4, 0xcb, 0x0c, 0x93, 0x52, - 0x4b, 0x12, 0x0d, 0xf5, 0x8b, 0x93, 0x33, 0x52, 0x53, 0x4a, 0x73, 0x52, 0x8b, 0xf4, 0x0a, 0x8a, - 0xf2, 0x4b, 0xf2, 0x85, 0x64, 0x90, 0x55, 0xeb, 0x41, 0x39, 0x7a, 0x50, 0xd5, 0x52, 0x22, 0xe9, - 0xf9, 0xe9, 0xf9, 0x60, 0x85, 0xfa, 0x20, 0x16, 0x44, 0x8f, 0x94, 0x64, 0x72, 0x7e, 0x71, 0x6e, - 0x7e, 0x71, 0x3c, 0x44, 0x02, 0xc2, 0x81, 0x48, 0x29, 0xa9, 0x73, 0xf1, 0x06, 0x43, 0x6d, 0x48, - 0x09, 0xcf, 0x2f, 0xca, 0x16, 0x12, 0xe3, 0x62, 0x2b, 0x4a, 0x2d, 0x48, 0x4d, 0x2c, 0x91, 0x60, - 0x54, 0x60, 0xd4, 0xe0, 0x08, 0x82, 0xf2, 0x94, 0xdc, 0xb8, 0x04, 0xc2, 0x12, 0x73, 0x32, 0x53, - 0x12, 0x4b, 0xf2, 0x8b, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, 0x85, 0x8c, 0xb8, 0xd8, 0x13, - 0x21, 0x4c, 0xb0, 0x62, 0x4e, 0x27, 0x89, 0x4b, 0x5b, 0x74, 0x45, 0xa0, 0xe6, 0x43, 0x15, 0x05, - 0x97, 0x14, 0x65, 0xe6, 0xa5, 0x07, 0xc1, 0x14, 0x3a, 0x85, 0x9e, 0x78, 0x28, 0xc7, 0xb0, 0xe2, - 0x91, 0x1c, 0xc3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, - 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa7, 0x67, - 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x63, 0x0b, 0x1a, 0xdd, 0xe2, 0x94, 0x6c, - 0xfd, 0x0a, 0x78, 0x40, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xbd, 0x63, 0x0c, 0x08, - 0x00, 0x00, 0xff, 0xff, 0x34, 0x7c, 0x99, 0x48, 0x4d, 0x01, 0x00, 0x00, -} - -func (m *ScheduledWork) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScheduledWork) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScheduledWork) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Repeat { - i-- - if m.Repeat { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ValidatorAddress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorAddress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintScheduler(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintScheduler(dAtA []byte, offset int, v uint64) int { - offset -= sovScheduler(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} - -func (m *ScheduledWork) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Repeat { - n += 2 - } - return n -} - -func (m *ValidatorAddress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovScheduler(uint64(l)) - } - return n -} - -func sovScheduler(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} - -func sozScheduler(x uint64) (n int) { - return sovScheduler(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} - -func (m *ScheduledWork) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowScheduler - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScheduledWork: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduledWork: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Repeat", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowScheduler - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Repeat = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipScheduler(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthScheduler - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *ValidatorAddress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowScheduler - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorAddress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorAddress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowScheduler - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthScheduler - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthScheduler - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipScheduler(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthScheduler - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func skipScheduler(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowScheduler - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowScheduler - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowScheduler - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthScheduler - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupScheduler - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthScheduler - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthScheduler = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowScheduler = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupScheduler = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/babylon/types/tx.pb.go b/x/babylon/types/tx.pb.go index 0da78c0..54d9cac 100644 --- a/x/babylon/types/tx.pb.go +++ b/x/babylon/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: babylonchain/babylon/v1beta1/tx.proto +// source: babylonlabs/babylon/v1beta1/tx.proto package types @@ -45,7 +45,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_bc77522e78a3430e, []int{0} + return fileDescriptor_406c9f025b2f9448, []int{0} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bc77522e78a3430e, []int{1} + return fileDescriptor_406c9f025b2f9448, []int{1} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -113,38 +113,38 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgUpdateParams)(nil), "babylonchain.babylon.v1beta1.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "babylonchain.babylon.v1beta1.MsgUpdateParamsResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "babylonlabs.babylon.v1beta1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "babylonlabs.babylon.v1beta1.MsgUpdateParamsResponse") } func init() { - proto.RegisterFile("babylonchain/babylon/v1beta1/tx.proto", fileDescriptor_bc77522e78a3430e) -} - -var fileDescriptor_bc77522e78a3430e = []byte{ - // 341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0x4a, 0x4c, 0xaa, - 0xcc, 0xc9, 0xcf, 0x4b, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x87, 0x72, 0xf4, 0xcb, 0x0c, 0x93, 0x52, - 0x4b, 0x12, 0x0d, 0xf5, 0x4b, 0x2a, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x64, 0x90, 0x95, - 0xe9, 0x41, 0x39, 0x7a, 0x50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 0xad, 0x45, 0x33, 0x4e, - 0xca, 0x94, 0x24, 0xe5, 0x30, 0xdb, 0xa5, 0x58, 0x1b, 0x9e, 0x6f, 0xd0, 0x62, 0x74, 0x0a, 0x3e, - 0xf1, 0x50, 0x8e, 0xe1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, - 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x4c, 0xd3, - 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0x61, 0xe1, 0x9e, 0x93, 0x98, 0x54, 0xac, - 0x9b, 0x99, 0x0f, 0xe3, 0xea, 0x16, 0xa7, 0x64, 0xeb, 0x57, 0xc0, 0x23, 0xa9, 0xa4, 0xb2, 0x20, - 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x37, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x69, 0xc8, 0x21, - 0x98, 0x58, 0x02, 0x00, 0x00, + proto.RegisterFile("babylonlabs/babylon/v1beta1/tx.proto", fileDescriptor_406c9f025b2f9448) +} + +var fileDescriptor_406c9f025b2f9448 = []byte{ + // 337 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0x4a, 0x4c, 0xaa, + 0xcc, 0xc9, 0xcf, 0xcb, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xb2, 0xf5, 0xcb, 0x0c, 0x93, 0x52, 0x4b, + 0x12, 0x0d, 0xf5, 0x4b, 0x2a, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xa4, 0x91, 0x54, 0xe9, + 0x41, 0xd9, 0x7a, 0x50, 0x55, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9,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xd5, 0x30, 0xbb, 0xa5, 0x58, 0x1b, 0x9e, 0x6f, 0xd0, 0x62, 0x74, 0x0a, 0x3e, 0xf1, + 0x50, 0x8e, 0xe1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, + 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x4c, 0xd3, 0x33, + 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x91, 0x2c, 0xd1, 0xcd, 0xcc, 0x87, 0x71, + 0x75, 0x8b, 0x53, 0xb2, 0xf5, 0x2b, 0xe0, 0x31, 0x54, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, + 0x8e, 0x18, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x42, 0xc9, 0x7e, 0x52, 0x02, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -174,7 +174,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/babylonchain.babylon.v1beta1.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/babylonlabs.babylon.v1beta1.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -210,7 +210,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/babylonchain.babylon.v1beta1.Msg/UpdateParams", + FullMethod: "/babylonlabs.babylon.v1beta1.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -219,7 +219,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "babylonchain.babylon.v1beta1.Msg", + ServiceName: "babylonlabs.babylon.v1beta1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -228,7 +228,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "babylonchain/babylon/v1beta1/tx.proto", + Metadata: "babylonlabs/babylon/v1beta1/tx.proto", } func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { From b8d0f5751a5b6cfbc5f8d6ad3a050a846fd8391b Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Fri, 18 Oct 2024 13:06:38 +0200 Subject: [PATCH 2/2] F/add local bcd (#54) Adds local bcd instance docker image --- Makefile | 7 +- Dockerfile => contrib/images/bcd | 0 contrib/images/local-bcd/Dockerfile | 53 ++++++++++++ contrib/images/local-bcd/setup-bcd.sh | 120 ++++++++++++++++++++++++++ contrib/images/local-bcd/wrapper.sh | 25 ++++++ 5 files changed, 203 insertions(+), 2 deletions(-) rename Dockerfile => contrib/images/bcd (100%) create mode 100644 contrib/images/local-bcd/Dockerfile create mode 100755 contrib/images/local-bcd/setup-bcd.sh create mode 100755 contrib/images/local-bcd/wrapper.sh diff --git a/Makefile b/Makefile index 309f0bb..1851306 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,11 @@ build-linux-static: $(MAKE) -C demo build-linux-static build-docker: - $(DOCKER) build --tag babylonlabs-io/bcd -f Dockerfile \ - $(shell git rev-parse --show-toplevel) + $(DOCKER) build --tag babylonlabs-io/bcd -f contrib/images/bcd/Dockerfile . + +# A local bcd image with users and funds for testing / development / integration purposes +build-bcd: + $(DOCKER) build --tag babylonlabs-io/local-bcd -f contrib/images/local-bcd/Dockerfile . ######################################## ### Testing diff --git a/Dockerfile b/contrib/images/bcd similarity index 100% rename from Dockerfile rename to contrib/images/bcd diff --git a/contrib/images/local-bcd/Dockerfile b/contrib/images/local-bcd/Dockerfile new file mode 100644 index 0000000..c7f04b5 --- /dev/null +++ b/contrib/images/local-bcd/Dockerfile @@ -0,0 +1,53 @@ +FROM debian:bullseye-slim AS build-env + +RUN apt-get update && apt-get install -y git make gcc wget + +WORKDIR /work + +ARG TARGETARCH + +# Download and install Go +ENV GOLANG_VERSION=1.21.4 +RUN wget -q https://golang.org/dl/go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz && \ + tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz && \ + rm go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz +# Set Go environment variables +ENV PATH=/usr/local/go/bin:$PATH +ENV GOPATH=/go +ENV PATH=$GOPATH/bin:$PATH + +ENV GO111MODULE=on + +# Install bcd +COPY . /work +RUN make install + +FROM debian:bullseye-slim AS run + +RUN apt-get update && apt-get install -y bash curl jq wget + +# Install libraries +# Cosmwasm - Download correct libwasmvm version +COPY --from=build-env /work/demo/go.mod /tmp +RUN WASMVM_VERSION=$(grep github.com/CosmWasm/wasmvm /tmp/go.mod | cut -d' ' -f2) && \ + wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm.$(uname -m).so \ + -O /lib/libwasmvm.$(uname -m).so && \ + # verify checksum + wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \ + sha256sum /lib/libwasmvm.$(uname -m).so | grep $(cat /tmp/checksums.txt | grep libwasmvm.$(uname -m) | cut -d ' ' -f 1) +RUN rm -f /tmp/go.mod + +# Install binaries +COPY --from=build-env /go/bin/bcd /usr/bin/bcd + +WORKDIR /bcd +COPY --from=build-env /work/contrib/images/local-bcd/wrapper.sh /bcd +COPY --from=build-env /work/contrib/images/local-bcd/setup-bcd.sh /bcd +COPY --from=build-env /work/tests/testdata/babylon_contract.wasm /bcd +COPY --from=build-env /work/tests/testdata/btc_staking.wasm /bcd + +ENV CONSUMER_CONF=/data/bcd + +ENTRYPOINT ["/bcd/wrapper.sh"] +CMD [] +STOPSIGNAL SIGTERM diff --git a/contrib/images/local-bcd/setup-bcd.sh b/contrib/images/local-bcd/setup-bcd.sh new file mode 100755 index 0000000..8ef4611 --- /dev/null +++ b/contrib/images/local-bcd/setup-bcd.sh @@ -0,0 +1,120 @@ +#!/bin/bash + +display_usage() { + echo "Missing parameters. Please check if all parameters were specified." + echo "Usage: setup-bcd.sh [CHAIN_ID] [CHAIN_DIR] [RPC_PORT] [P2P_PORT] [PROFILING_PORT] [GRPC_PORT] [BABYLON_CONTRACT_CODE_DIR] [BTCSTAKING_CONTRACT_CODE_DIR] [INSTANTIATING_CFG]" + echo "Example: setup-bcd.sh test-chain-id ./data 26657 26656 6060 9090 ./babylon_contract.wasm '{"btc_confirmation_depth":1,"checkpoint_finalization_timeout":2,"network":"Regtest","babylon_tag":"bbn0", "notify_cosmos_zone":false, "btc_staking_code_id":2}'" + exit 1 +} + +BINARY=bcd +DENOM=stake +BASEDENOM=ustake +KEYRING=--keyring-backend="test" +SILENT=1 + +redirect() { + if [ "$SILENT" -eq 1 ]; then + "$@" >/dev/null 2>&1 + else + "$@" + fi +} + +if [ "$#" -lt "8" ]; then + display_usage + exit 1 +fi + +CHAINID=$1 +CHAINDIR=$2 +RPCPORT=$3 +P2PPORT=$4 +PROFPORT=$5 +GRPCPORT=$6 +BABYLON_CONTRACT_CODE_DIR=$7 +BTCSTAKING_CONTRACT_CODE_DIR=$8 +INSTANTIATING_CFG=$9 + +# ensure the binary exists +if ! command -v $BINARY &>/dev/null; then + echo "$BINARY could not be found" + exit +fi + +# Delete chain data from old runs +echo "Deleting $CHAINDIR/$CHAINID folders..." +rm -rf $CHAINDIR/$CHAINID &>/dev/null +rm $CHAINDIR/$CHAINID.log &>/dev/null + +echo "Creating $BINARY instance: home=$CHAINDIR | chain-id=$CHAINID | p2p=:$P2PPORT | rpc=:$RPCPORT | profiling=:$PROFPORT | grpc=:$GRPCPORT" + +# Add dir for chain, exit if error +if ! mkdir -p $CHAINDIR/$CHAINID 2>/dev/null; then + echo "Failed to create chain folder. Aborting..." + exit 1 +fi +# Build genesis file incl account for passed address +coins="100000000000$DENOM,100000000000$BASEDENOM" +delegate="100000000000$DENOM" + +redirect $BINARY --home $CHAINDIR/$CHAINID --chain-id $CHAINID init $CHAINID +sleep 1 +$BINARY --home $CHAINDIR/$CHAINID keys add validator $KEYRING --output json > $CHAINDIR/$CHAINID/validator_seed.json 2>&1 +sleep 1 +$BINARY --home $CHAINDIR/$CHAINID keys add user $KEYRING --output json > $CHAINDIR/$CHAINID/key_seed.json 2>&1 +sleep 1 +redirect $BINARY --home $CHAINDIR/$CHAINID genesis add-genesis-account $($BINARY --home $CHAINDIR/$CHAINID keys $KEYRING show user -a) $coins +sleep 1 +redirect $BINARY --home $CHAINDIR/$CHAINID genesis add-genesis-account $($BINARY --home $CHAINDIR/$CHAINID keys $KEYRING show validator -a) $coins +sleep 1 +redirect $BINARY --home $CHAINDIR/$CHAINID genesis gentx validator $delegate $KEYRING --chain-id $CHAINID +sleep 1 +redirect $BINARY --home $CHAINDIR/$CHAINID genesis collect-gentxs +sleep 1 + +# Set proper defaults and change ports +echo "Change settings in config.toml and genesis.json files..." +sed -i 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:'"$RPCPORT"'"#g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's#"tcp://0.0.0.0:26656"#"tcp://0.0.0.0:'"$P2PPORT"'"#g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's#"localhost:6060"#"localhost:'"$PROFPORT"'"#g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's/max_body_bytes = 1000000/max_body_bytes = 1000000000/g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.00001ustake"/g' $CHAINDIR/$CHAINID/config/app.toml +sed -i 's/timeout_propose = "3s"/timeout_propose = "1s"/g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's/index_all_keys = false/index_all_keys = true/g' $CHAINDIR/$CHAINID/config/config.toml +sed -i 's#"tcp://0.0.0.0:1317"#"tcp://0.0.0.0:1318"#g' $CHAINDIR/$CHAINID/config/app.toml # ensure port is not conflicted with Babylon +sed -i 's/"bond_denom": "stake"/"bond_denom": "'"$DENOM"'"/g' $CHAINDIR/$CHAINID/config/genesis.json +# sed -i '' 's#index-events = \[\]#index-events = \["message.action","send_packet.packet_src_channel","send_packet.packet_sequence"\]#g' $CHAINDIR/$CHAINID/config/app.toml + +## Script for getting contract addresses +## TODO(euphrates): pass a gov prop on setting the Babylon / BTC staking contract addresses +# babylonContractAddr=$(bcd query wasm list-contract-by-code 1 -o json | jq -r '.contracts[0]') +# btcStakingContractAddr=$(bcd query wasm list-contract-by-code 2 -o json | jq -r '.contracts[0]') +# echo "babylonContractAddr is $babylonContractAddr" +# echo "btcStakingContractAddr is $btcStakingContractAddr" + +# update contract address in genesis +babylonContractAddr=bbnc14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9syx25zf +btcStakingContractAddr=bbnc1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqgn0kq0 +sed -i 's/"babylon_contract_address": ""/"babylon_contract_address": "'"$babylonContractAddr"'"/g' $CHAINDIR/$CHAINID/config/genesis.json +sed -i 's/"btc_staking_contract_address": ""/"btc_staking_contract_address": "'"$btcStakingContractAddr"'"/g' $CHAINDIR/$CHAINID/config/genesis.json + +# Start +echo "Starting $BINARY..." +$BINARY --home $CHAINDIR/$CHAINID start --pruning=nothing --grpc-web.enable=false --grpc.address="0.0.0.0:$GRPCPORT" --log_level trace --trace --log_format 'plain' 2>&1 | tee $CHAINDIR/$CHAINID.log & +sleep 20 + +# upload contract code +echo "Uploading babylon contract code $BABYLON_CONTRACT_CODE_DIR..." +$BINARY --home $CHAINDIR/$CHAINID tx wasm store "$BABYLON_CONTRACT_CODE_DIR" $KEYRING --from user --chain-id $CHAINID --gas 20000000000 --gas-prices 0.01ustake --node http://localhost:$RPCPORT -y +sleep 10 + +# upload contract code +echo "Uploading btcstaking contract code $BTCSTAKING_CONTRACT_CODE_DIR..." +$BINARY --home $CHAINDIR/$CHAINID tx wasm store "$BTCSTAKING_CONTRACT_CODE_DIR" $KEYRING --from user --chain-id $CHAINID --gas 20000000000 --gas-prices 0.01ustake --node http://localhost:$RPCPORT -y +sleep 10 + +# Echo the command with expanded variables +echo "Instantiating contract with code $BABYLON_CONTRACT_CODE_DIR..." +$BINARY --home $CHAINDIR/$CHAINID tx wasm instantiate 1 "$INSTANTIATING_CFG" --admin=$(bcd --home $CHAINDIR/$CHAINID keys show user --keyring-backend test -a) --label "v0.0.1" $KEYRING --from user --chain-id $CHAINID --gas 20000000000 --gas-prices 0.001ustake --node http://localhost:$RPCPORT -y --amount 100000stake \ No newline at end of file diff --git a/contrib/images/local-bcd/wrapper.sh b/contrib/images/local-bcd/wrapper.sh new file mode 100755 index 0000000..01b8c2c --- /dev/null +++ b/contrib/images/local-bcd/wrapper.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env sh + +# 0. Define configuration +CONSUMER_KEY="bcd-key" +CONSUMER_CHAIN_ID="bcd-test" + +# 1. Create a bcd testnet with Babylon contract +./setup-bcd.sh $CONSUMER_CHAIN_ID $CONSUMER_CONF 26657 26656 6060 9090 ./babylon_contract.wasm ./btc_staking.wasm '{ + "network": "regtest", + "babylon_tag": "01020304", + "btc_confirmation_depth": 1, + "checkpoint_finalization_timeout": 2, + "notify_cosmos_zone": false, + "btc_staking_code_id": 2, + "consumer_name": "Test Consumer", + "consumer_description": "Test Consumer Description" +}' + +sleep 10 + +CONTRACT_ADDRESS=$(bcd query wasm list-contract-by-code 1 | grep bbnc | cut -d' ' -f2) +CONTRACT_PORT="wasm.$CONTRACT_ADDRESS" +echo "bcd started. Status of bcd node:" +bcd status +echo "Contract port: $CONTRACT_PORT"