diff --git a/block/initchain.go b/block/initchain.go index 7368b043f..604bbe3cb 100644 --- a/block/initchain.go +++ b/block/initchain.go @@ -1,14 +1,16 @@ package block import ( - "context" "errors" "fmt" + tmjson "github.com/tendermint/tendermint/libs/json" tmtypes "github.com/tendermint/tendermint/types" + + rollapptypes "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" ) -func (m *Manager) RunInitChain(ctx context.Context) error { +func (m *Manager) RunInitChain() error { // Get the proposer at the initial height. If we're at genesis the height will be 0. proposer, err := m.SLClient.GetProposerAtHeight(int64(m.State.Height()) + 1) //nolint:gosec // height is non-negative and falls in int64 if err != nil { @@ -23,6 +25,12 @@ func (m *Manager) RunInitChain(ctx context.Context) error { return err } + // validate the resulting genesis bridge data against the hub + err = m.ValidateGenesisBridgeData(res.GenesisBridgeDataBytes) + if err != nil { + return fmt.Errorf("Cannot validate genesis bridge data: %w. Please call `$EXECUTABLE dymint unsafe-reset-all` before the next launch to reset this node to genesis state.", err) + } + // update the state with only the consensus pubkey m.Executor.UpdateStateAfterInitChain(m.State, res) m.Executor.UpdateMempoolAfterInitChain(m.State) @@ -32,3 +40,17 @@ func (m *Manager) RunInitChain(ctx context.Context) error { return nil } + +// ValidateGenesisBridgeData validates the genesis bridge data from +// InitChainResponse against the rollapp genesis stored in the hub. +func (m *Manager) ValidateGenesisBridgeData(dataBytes []byte) error { + if len(dataBytes) == 0 { + return fmt.Errorf("genesis bridge data is empty in InitChainResponse") + } + var genesisBridgeData rollapptypes.GenesisBridgeData + err := tmjson.Unmarshal(dataBytes, &genesisBridgeData) + if err != nil { + return fmt.Errorf("unmarshal genesis bridge data: %w", err) + } + return m.SLClient.ValidateGenesisBridgeData(genesisBridgeData) +} diff --git a/block/manager.go b/block/manager.go index a148b8fba..e6a2e6681 100644 --- a/block/manager.go +++ b/block/manager.go @@ -217,7 +217,7 @@ func (m *Manager) Start(ctx context.Context) error { if m.State.IsGenesis() { m.logger.Info("Running InitChain") - err := m.RunInitChain(ctx) + err := m.RunInitChain() if err != nil { return err } diff --git a/block/manager_test.go b/block/manager_test.go index 42bb506ab..583ea8c58 100644 --- a/block/manager_test.go +++ b/block/manager_test.go @@ -12,6 +12,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + tmjson "github.com/tendermint/tendermint/libs/json" "github.com/libp2p/go-libp2p/core/crypto" @@ -38,8 +39,9 @@ import ( slregistry "github.com/dymensionxyz/dymint/settlement/registry" "github.com/dymensionxyz/dymint/store" - "github.com/dymensionxyz/dymint/utils/event" "github.com/dymensionxyz/gerr-cosmos/gerrc" + + "github.com/dymensionxyz/dymint/utils/event" ) // TODO: test loading sequencer while rotation in progress @@ -354,7 +356,8 @@ func TestApplyLocalBlock_WithFraudCheck(t *testing.T) { mockExecutor := &blockmocks.MockExecutorI{} manager.Executor = mockExecutor - mockExecutor.On("InitChain", mock.Anything, mock.Anything, mock.Anything).Return(&abci.ResponseInitChain{}, nil) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockExecutor.On("InitChain", mock.Anything, mock.Anything, mock.Anything).Return(&abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) mockExecutor.On("GetAppInfo").Return(&abci.ResponseInfo{ LastBlockHeight: int64(batch.EndHeight()), }, nil) @@ -383,7 +386,7 @@ func TestApplyLocalBlock_WithFraudCheck(t *testing.T) { go func() { errChan <- manager.Start(ctx) err := <-errChan - require.True(t, errors.Is(err, gerrc.ErrFault)) + require.Truef(t, errors.Is(err, gerrc.ErrFault), "expected error to be %v, got: %v", gerrc.ErrFault, err) }() <-ctx.Done() assert.Equal(t, batch.EndHeight(), manager.LastSettlementHeight.Load()) diff --git a/go.mod b/go.mod index 45ecf5149..3a5c274d4 100644 --- a/go.mod +++ b/go.mod @@ -9,6 +9,7 @@ require ( github.com/celestiaorg/go-cnc v0.4.2 github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12 github.com/cosmos/cosmos-sdk v0.46.16 + github.com/cosmos/ibc-go/v6 v6.2.1 github.com/dgraph-io/badger/v4 v4.3.0 github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20241121093220-e0d7ad456fbd github.com/dymensionxyz/dymension-rdk v1.6.1-0.20241119103059-def6322e4345 @@ -54,6 +55,7 @@ require ( github.com/dgraph-io/badger/v3 v3.2103.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/ipfs/go-block-format v0.2.0 // indirect + github.com/regen-network/cosmos-proto v0.3.1 // indirect github.com/tklauser/go-sysconf v0.3.11 // indirect ) @@ -298,10 +300,14 @@ require ( replace ( github.com/CosmWasm/wasmd => github.com/decentrio/wasmd v0.33.0-sdk46.2 github.com/centrifuge/go-substrate-rpc-client/v4 => github.com/availproject/go-substrate-rpc-client/v4 v4.0.12-avail-1.4.0-rc1-5e286e3 - github.com/evmos/evmos/v12 => github.com/dymensionxyz/evmos/v12 v12.1.6-dymension-v0.3 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.2-alpha.regen.4 - github.com/gorilla/rpc => github.com/dymensionxyz/rpc v1.3.1 - github.com/tendermint/tendermint => github.com/dymensionxyz/cometbft v0.34.29-0.20241104165035-feade34f8f89 ) -replace github.com/osmosis-labs/osmosis/v15 => github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.2 +// Dymension Forks +replace ( + github.com/cosmos/cosmos-sdk => github.com/dymensionxyz/cosmos-sdk v0.46.17-0.20241128210616-e9dfe47b8c73 + github.com/evmos/evmos/v12 => github.com/dymensionxyz/evmos/v12 v12.1.6-dymension-v0.3 + github.com/gorilla/rpc => github.com/dymensionxyz/rpc v1.3.1 + github.com/osmosis-labs/osmosis/v15 => github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.2 + github.com/tendermint/tendermint => github.com/dymensionxyz/cometbft v0.34.29-0.20241128205759-2a9d5f015da5 +) diff --git a/go.sum b/go.sum index 91ff913de..689e485bd 100644 --- a/go.sum +++ b/go.sum @@ -239,8 +239,6 @@ github.com/cosmos/cosmos-db v1.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0 github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= -github.com/cosmos/cosmos-sdk v0.46.16 h1:RVGv1+RulLZeNyfCaPZrZtv0kY7ZZNAI6JGpub0Uh6o= -github.com/cosmos/cosmos-sdk v0.46.16/go.mod h1:05U50tAsOzQ8JOAePshJCbJQw5ib1YJR6IXcqyVI1Xg= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= @@ -324,8 +322,10 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= -github.com/dymensionxyz/cometbft v0.34.29-0.20241104165035-feade34f8f89 h1:rGkCcx4dWX9mxAUrq7zrdOc44XddMY/nM6kqYTWjerY= -github.com/dymensionxyz/cometbft v0.34.29-0.20241104165035-feade34f8f89/go.mod h1:L9shMfbkZ8B+7JlwANEr+NZbBcn+hBpwdbeYvA5rLCw= +github.com/dymensionxyz/cometbft v0.34.29-0.20241128205759-2a9d5f015da5 h1:DIKsa7EWJRt+pIzzFn3MGYajwqaTmQQ/k255xONciRc= +github.com/dymensionxyz/cometbft v0.34.29-0.20241128205759-2a9d5f015da5/go.mod h1:L9shMfbkZ8B+7JlwANEr+NZbBcn+hBpwdbeYvA5rLCw= +github.com/dymensionxyz/cosmos-sdk v0.46.17-0.20241128210616-e9dfe47b8c73 h1:A0Oqua/AfzhBWvv4jiep48TAaAsh6wSwgCKBAqU/LQ0= +github.com/dymensionxyz/cosmos-sdk v0.46.17-0.20241128210616-e9dfe47b8c73/go.mod h1:VPUuzF+l+ekSGPV7VVB8m0OMQfwp3QdKWNZjvkU3A1U= github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20241121093220-e0d7ad456fbd h1:V89QyOFM84o9w0iFdctMU6So8SS/Xt32JWAXGqJduT0= github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20241121093220-e0d7ad456fbd/go.mod h1:3weqpVj/TqTFpC0LjEB3H+HZSpm7BrQ1QkEg1Ahy6KY= github.com/dymensionxyz/dymension-rdk v1.6.1-0.20241119103059-def6322e4345 h1:FcHidPgGEHh9ELwodNJkGcHqsG+mdPiGdughzG4W+X8= diff --git a/mocks/github.com/dymensionxyz/dymint/settlement/mock_ClientI.go b/mocks/github.com/dymensionxyz/dymint/settlement/mock_ClientI.go index 53e75579b..a609b4d42 100644 --- a/mocks/github.com/dymensionxyz/dymint/settlement/mock_ClientI.go +++ b/mocks/github.com/dymensionxyz/dymint/settlement/mock_ClientI.go @@ -8,6 +8,8 @@ import ( pubsub "github.com/tendermint/tendermint/libs/pubsub" + rollapp "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" + settlement "github.com/dymensionxyz/dymint/settlement" types "github.com/dymensionxyz/dymint/types" @@ -965,6 +967,52 @@ func (_c *MockClientI_SubmitBatch_Call) RunAndReturn(run func(*types.Batch, da.C return _c } +// ValidateGenesisBridgeData provides a mock function with given fields: data +func (_m *MockClientI) ValidateGenesisBridgeData(data rollapp.GenesisBridgeData) error { + ret := _m.Called(data) + + if len(ret) == 0 { + panic("no return value specified for ValidateGenesisBridgeData") + } + + var r0 error + if rf, ok := ret.Get(0).(func(rollapp.GenesisBridgeData) error); ok { + r0 = rf(data) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// MockClientI_ValidateGenesisBridgeData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateGenesisBridgeData' +type MockClientI_ValidateGenesisBridgeData_Call struct { + *mock.Call +} + +// ValidateGenesisBridgeData is a helper method to define mock.On call +// - data rollapp.GenesisBridgeData +func (_e *MockClientI_Expecter) ValidateGenesisBridgeData(data interface{}) *MockClientI_ValidateGenesisBridgeData_Call { + return &MockClientI_ValidateGenesisBridgeData_Call{Call: _e.mock.On("ValidateGenesisBridgeData", data)} +} + +func (_c *MockClientI_ValidateGenesisBridgeData_Call) Run(run func(data rollapp.GenesisBridgeData)) *MockClientI_ValidateGenesisBridgeData_Call { + _c.Call.Run(func(args mock.Arguments) { + run(args[0].(rollapp.GenesisBridgeData)) + }) + return _c +} + +func (_c *MockClientI_ValidateGenesisBridgeData_Call) Return(_a0 error) *MockClientI_ValidateGenesisBridgeData_Call { + _c.Call.Return(_a0) + return _c +} + +func (_c *MockClientI_ValidateGenesisBridgeData_Call) RunAndReturn(run func(rollapp.GenesisBridgeData) error) *MockClientI_ValidateGenesisBridgeData_Call { + _c.Call.Return(run) + return _c +} + // NewMockClientI creates a new instance of MockClientI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewMockClientI(t interface { diff --git a/mocks/github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp/mock_QueryClient.go b/mocks/github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp/mock_QueryClient.go index a88bb2401..80d7ab986 100644 --- a/mocks/github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp/mock_QueryClient.go +++ b/mocks/github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp/mock_QueryClient.go @@ -691,6 +691,80 @@ func (_c *MockQueryClient_StateInfo_Call) RunAndReturn(run func(context.Context, return _c } +// ValidateGenesisBridge provides a mock function with given fields: ctx, in, opts +func (_m *MockQueryClient) ValidateGenesisBridge(ctx context.Context, in *rollapp.QueryValidateGenesisBridgeRequest, opts ...grpc.CallOption) (*rollapp.QueryValidateGenesisBridgeResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ValidateGenesisBridge") + } + + var r0 *rollapp.QueryValidateGenesisBridgeResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *rollapp.QueryValidateGenesisBridgeRequest, ...grpc.CallOption) (*rollapp.QueryValidateGenesisBridgeResponse, error)); ok { + return rf(ctx, in, opts...) + } + if rf, ok := ret.Get(0).(func(context.Context, *rollapp.QueryValidateGenesisBridgeRequest, ...grpc.CallOption) *rollapp.QueryValidateGenesisBridgeResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rollapp.QueryValidateGenesisBridgeResponse) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *rollapp.QueryValidateGenesisBridgeRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockQueryClient_ValidateGenesisBridge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateGenesisBridge' +type MockQueryClient_ValidateGenesisBridge_Call struct { + *mock.Call +} + +// ValidateGenesisBridge is a helper method to define mock.On call +// - ctx context.Context +// - in *rollapp.QueryValidateGenesisBridgeRequest +// - opts ...grpc.CallOption +func (_e *MockQueryClient_Expecter) ValidateGenesisBridge(ctx interface{}, in interface{}, opts ...interface{}) *MockQueryClient_ValidateGenesisBridge_Call { + return &MockQueryClient_ValidateGenesisBridge_Call{Call: _e.mock.On("ValidateGenesisBridge", + append([]interface{}{ctx, in}, opts...)...)} +} + +func (_c *MockQueryClient_ValidateGenesisBridge_Call) Run(run func(ctx context.Context, in *rollapp.QueryValidateGenesisBridgeRequest, opts ...grpc.CallOption)) *MockQueryClient_ValidateGenesisBridge_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]grpc.CallOption, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(grpc.CallOption) + } + } + run(args[0].(context.Context), args[1].(*rollapp.QueryValidateGenesisBridgeRequest), variadicArgs...) + }) + return _c +} + +func (_c *MockQueryClient_ValidateGenesisBridge_Call) Return(_a0 *rollapp.QueryValidateGenesisBridgeResponse, _a1 error) *MockQueryClient_ValidateGenesisBridge_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockQueryClient_ValidateGenesisBridge_Call) RunAndReturn(run func(context.Context, *rollapp.QueryValidateGenesisBridgeRequest, ...grpc.CallOption) (*rollapp.QueryValidateGenesisBridgeResponse, error)) *MockQueryClient_ValidateGenesisBridge_Call { + _c.Call.Return(run) + return _c +} + // NewMockQueryClient creates a new instance of MockQueryClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewMockQueryClient(t interface { diff --git a/node/node_test.go b/node/node_test.go index 9b953e01e..65f262fab 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -9,11 +9,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + tmjson "github.com/tendermint/tendermint/libs/json" "github.com/dymensionxyz/dymint/mempool" "github.com/dymensionxyz/dymint/node" "github.com/dymensionxyz/dymint/settlement" "github.com/dymensionxyz/dymint/testutil" + "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" "github.com/dymensionxyz/dymint/version" "github.com/libp2p/go-libp2p/core/crypto" @@ -57,7 +59,8 @@ func TestMempoolDirectly(t *testing.T) { require := require.New(t) app := &tmmocks.MockApplication{} - app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{}) app.On("Info", mock.Anything).Return(abci.ResponseInfo{}) key, _, _ := crypto.GenerateEd25519Key(rand.Reader) diff --git a/proto/get_deps.sh b/proto/get_deps.sh index 7cb49ef73..a27a428b0 100755 --- a/proto/get_deps.sh +++ b/proto/get_deps.sh @@ -33,6 +33,7 @@ COSMOS_PROTO_FILES=( base/v1beta1/coin.proto base/query/v1beta1/pagination.proto msg/v1/msg.proto + bank/v1beta1/bank.proto ) echo Fetching protobuf dependencies from Cosmos $COSMOS_VERSION @@ -41,3 +42,17 @@ for FILE in "${COSMOS_PROTO_FILES[@]}"; do mkdir -p "cosmos/$(dirname $FILE)" curl -sSL "$COSMOS_PROTO_URL/$FILE" > "cosmos/$FILE" done + +IBC_VERSION=v6.2.1 +IBC_PROTO_URL=https://raw.githubusercontent.com/cosmos/ibc-go/refs/tags/$IBC_VERSION/proto + +IBC_PROTO_FILES=( + ibc/applications/transfer/v2/packet.proto +) + +echo Fetching protobuf dependencies from IBC $IBC_VERSION +for FILE in "${IBC_PROTO_FILES[@]}"; do + echo Fetching "$FILE" + mkdir -p "ibc/$(dirname $FILE)" + curl -sSL "$IBC_PROTO_URL/$FILE" > "ibc/$FILE" +done diff --git a/proto/types/cosmos/bank/v1beta1/bank.proto b/proto/types/cosmos/bank/v1beta1/bank.proto new file mode 100644 index 000000000..b59e97c0c --- /dev/null +++ b/proto/types/cosmos/bank/v1beta1/bank.proto @@ -0,0 +1,108 @@ +syntax = "proto3"; +package cosmos.bank.v1beta1; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "types/cosmos/base/v1beta1/coin.proto"; +import "types/cosmos/msg/v1/msg.proto"; + +option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; + +// Params defines the parameters for the bank module. +message Params { + option (gogoproto.goproto_stringer) = false; + repeated SendEnabled send_enabled = 1; + bool default_send_enabled = 2; +} + +// SendEnabled maps coin denom to a send_enabled status (whether a denom is +// sendable). +message SendEnabled { + option (gogoproto.equal) = true; + option (gogoproto.goproto_stringer) = false; + string denom = 1; + bool enabled = 2; +} + +// Input models transaction input. +message Input { + option (cosmos.msg.v1.signer) = "address"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin coins = 2 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; +} + +// Output models transaction outputs. +message Output { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + repeated cosmos.base.v1beta1.Coin coins = 2 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; +} + +// Supply represents a struct that passively keeps track of the total supply +// amounts in the network. +// This message is deprecated now that supply is indexed by denom. +message Supply { + option deprecated = true; + + option (gogoproto.equal) = true; + option (gogoproto.goproto_getters) = false; + + option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/migrations/v040.SupplyI"; + + repeated cosmos.base.v1beta1.Coin total = 1 + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; +} + +// DenomUnit represents a struct that describes a given +// denomination unit of the basic token. +message DenomUnit { + // denom represents the string name of the given denom unit (e.g uatom). + string denom = 1; + // exponent represents power of 10 exponent that one must + // raise the base_denom to in order to equal the given DenomUnit's denom + // 1 denom = 10^exponent base_denom + // (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + // exponent = 6, thus: 1 atom = 10^6 uatom). + uint32 exponent = 2; + // aliases is a list of string aliases for the given denom + repeated string aliases = 3; +} + +// Metadata represents a struct that describes +// a basic token. +message Metadata { + string description = 1; + // denom_units represents the list of DenomUnit's for a given coin + repeated DenomUnit denom_units = 2; + // base represents the base denom (should be the DenomUnit with exponent = 0). + string base = 3; + // display indicates the suggested denom that should be + // displayed in clients. + string display = 4; + // name defines the name of the token (eg: Cosmos Atom) + // + // Since: cosmos-sdk 0.43 + string name = 5; + // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + // be the same as the display. + // + // Since: cosmos-sdk 0.43 + string symbol = 6; + // URI to a document (on or off-chain) that contains additional information. Optional. + // + // Since: cosmos-sdk 0.46 + string uri = 7 [(gogoproto.customname) = "URI"]; + // URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + // the document didn't change. Optional. + // + // Since: cosmos-sdk 0.46 + string uri_hash = 8 [(gogoproto.customname) = "URIHash"]; +} diff --git a/proto/types/dymensionxyz/dymension/rollapp/app.proto b/proto/types/dymensionxyz/dymension/rollapp/app.proto index f85c3d427..725416e8f 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/app.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/app.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; diff --git a/proto/types/dymensionxyz/dymension/rollapp/block_descriptor.proto b/proto/types/dymensionxyz/dymension/rollapp/block_descriptor.proto index 53b8884e5..8203466ae 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/block_descriptor.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/block_descriptor.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; diff --git a/proto/types/dymensionxyz/dymension/rollapp/genesis.proto b/proto/types/dymensionxyz/dymension/rollapp/genesis.proto index 03ededd4f..b58c7bd30 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/genesis.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/genesis.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; @@ -10,8 +7,8 @@ import "gogoproto/gogo.proto"; import "types/dymensionxyz/dymension/rollapp/params.proto"; import "types/dymensionxyz/dymension/rollapp/rollapp.proto"; import "types/dymensionxyz/dymension/rollapp/state_info.proto"; -import "types/dymensionxyz/dymension/rollapp/genesis_transfer.proto"; import "types/dymensionxyz/dymension/rollapp/liveness.proto"; +import "types/dymensionxyz/dymension/rollapp/app.proto"; // GenesisState defines the rollapp module's genesis state. message GenesisState { @@ -23,4 +20,19 @@ message GenesisState { repeated BlockHeightToFinalizationQueue blockHeightToFinalizationQueueList = 6 [(gogoproto.nullable) = false]; // LivenessEvents are scheduled upcoming liveness events repeated LivenessEvent livenessEvents = 7 [(gogoproto.nullable) = false]; + repeated App appList = 8 [(gogoproto.nullable) = false]; + repeated RollappRegisteredDenoms registeredDenoms = 9 [(gogoproto.nullable) = false]; + repeated SequencerHeightPair sequencerHeightPairs = 10 [(gogoproto.nullable) = false]; + // ObsoleteDrsVersions is a list of DRS versions that are marked obsolete + repeated uint32 obsolete_drs_versions = 11; +} + +message SequencerHeightPair { + string sequencer = 1; // sequencer addr to lookup in x/sequencer + uint64 height = 2; // rollapp chain height +} + +message RollappRegisteredDenoms { + string rollapp_id = 1; + repeated string denoms = 2; } diff --git a/proto/types/dymensionxyz/dymension/rollapp/genesis_bridge_data.proto b/proto/types/dymensionxyz/dymension/rollapp/genesis_bridge_data.proto new file mode 100644 index 000000000..12d733ec7 --- /dev/null +++ b/proto/types/dymensionxyz/dymension/rollapp/genesis_bridge_data.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +package dymensionxyz.dymension.rollapp; + +import "gogoproto/gogo.proto"; +import "types/cosmos/bank/v1beta1/bank.proto"; +import "types/ibc/applications/transfer/v2/packet.proto"; +import "types/dymensionxyz/dymension/rollapp/metadata.proto"; +import "types/dymensionxyz/dymension/rollapp/genesis_info.proto"; + + +option go_package = "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp"; + +// GenesisBridgeData is the data struct that is passed to the hub for the +// genesis bridge flow +message GenesisBridgeData { + // genesis_info is the genesis info of the rollapp. used for hub validation + GenesisBridgeInfo genesis_info = 1 [ (gogoproto.nullable) = false ]; + // native_denom is the native denom of the rollapp. registered on the hub + cosmos.bank.v1beta1.Metadata native_denom = 2 + [ (gogoproto.nullable) = false ]; + // optional genesis transfer packet data + ibc.applications.transfer.v2.FungibleTokenPacketData genesis_transfer = 3; +} + +// The genesis info of the rollapp, that is passed to the hub for validation. +// it's populated on the InitGenesis of the rollapp +message GenesisBridgeInfo { + // checksum used to verify integrity of the genesis file. currently unused + string genesis_checksum = 1; + // unique bech32 prefix + string bech32_prefix = 2; + // native_denom is the base denom for the native token + rollapp.DenomMetadata native_denom = 3 [ (gogoproto.nullable) = false ]; + // initial_supply is the initial supply of the native token + string initial_supply = 4 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false + ]; + // accounts on the Hub to fund with some bootstrapping transfers + repeated rollapp.GenesisAccount genesis_accounts = 5 [ (gogoproto.nullable) = false ]; +} \ No newline at end of file diff --git a/proto/types/dymensionxyz/dymension/rollapp/genesis_info.proto b/proto/types/dymensionxyz/dymension/rollapp/genesis_info.proto new file mode 100644 index 000000000..c3d9eac46 --- /dev/null +++ b/proto/types/dymensionxyz/dymension/rollapp/genesis_info.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; +package dymensionxyz.dymension.rollapp; + +option go_package = "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp"; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "types/cosmos/msg/v1/msg.proto"; + +import "types/dymensionxyz/dymension/rollapp/metadata.proto"; + +message GenesisInfo { + // checksum used to verify integrity of the genesis file + string genesis_checksum = 1; + // unique bech32 prefix + string bech32_prefix = 2; + // native_denom is the base denom for the native token + DenomMetadata native_denom = 3 [ (gogoproto.nullable) = false ]; + // initial_supply is the initial supply of the native token + string initial_supply = 4 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false + ]; + + // sealed indicates if the fields in this object are no longer updatable + bool sealed = 5; + + GenesisAccounts genesis_accounts = 6 [ (gogoproto.nullable) = true ]; +} + +message GenesisAccounts { + repeated GenesisAccount accounts = 1 [ (gogoproto.nullable) = false ]; +} + + +// GenesisAccount is a struct for the genesis account for the rollapp +message GenesisAccount { + // amount of coins to be sent to the genesis address + string amount = 1 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false + ]; + // address is a bech-32 address of the genesis account + string address = 2; +} diff --git a/proto/types/dymensionxyz/dymension/rollapp/genesis_transfer.proto b/proto/types/dymensionxyz/dymension/rollapp/genesis_transfer.proto deleted file mode 100644 index 092d197b7..000000000 --- a/proto/types/dymensionxyz/dymension/rollapp/genesis_transfer.proto +++ /dev/null @@ -1,25 +0,0 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - -syntax = "proto3"; -package dymensionxyz.dymension.rollapp; - -import "gogoproto/gogo.proto"; -import "types/dymensionxyz/dymension/rollapp/params.proto"; -import "types/dymensionxyz/dymension/rollapp/rollapp.proto"; -import "types/dymensionxyz/dymension/rollapp/state_info.proto"; -// this line is used by starport scaffolding # genesis/proto/import - -option go_package = "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp"; - -// Not to get confused with 'genesis', genesis transfers refers to the specific protocol of bootstrapping ibc denominated tokens for the RA - -// Bookkeeping for the genesis transfer bridge protocol. -// Each rollapp will have one of these items corresponding to it. -message GenesisTransfers { - string rollappID = 1; - // The total number of incoming ibc transfers to be fast tracked in the genesis transfer period - uint64 numTotal = 2; - // The number of transfers already processed, when this number reaches numTotal the genesis transfer window closes. - uint64 numReceived = 3; -} diff --git a/proto/types/dymensionxyz/dymension/rollapp/liveness.proto b/proto/types/dymensionxyz/dymension/rollapp/liveness.proto index 4d7299e34..79a10cdc9 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/liveness.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/liveness.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; @@ -12,10 +9,9 @@ import "types/cosmos/base/v1beta1/coin.proto"; // LivenessEvent stores upcoming slash/jail actions on sequencers of rollapps message LivenessEvent { + reserved 3; // RollappId of relevant rollapp string rollapp_id = 1; // HubHeight when event will occur int64 hub_height = 2; - // IsJail is true iff the event is to jail rather than slash - bool is_jail = 3; } \ No newline at end of file diff --git a/proto/types/dymensionxyz/dymension/rollapp/metadata.proto b/proto/types/dymensionxyz/dymension/rollapp/metadata.proto index 4ddeb9c91..30165e3cd 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/metadata.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/metadata.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; diff --git a/proto/types/dymensionxyz/dymension/rollapp/params.proto b/proto/types/dymensionxyz/dymension/rollapp/params.proto index 0b9061f47..06cd06978 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/params.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/params.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; @@ -19,20 +16,15 @@ message Params { uint64 dispute_period_in_blocks = 1 [ (gogoproto.moretags) = "yaml:\"dispute_period_in_blocks\"" ]; - reserved 2,3; + reserved 2,3,6; // The time (num hub blocks) a sequencer has to post a block, before he will be slashed uint64 liveness_slash_blocks = 4 [(gogoproto.moretags) = "yaml:\"liveness_slash_blocks\""]; // The min gap (num hub blocks) between a sequence of slashes if the sequencer continues to be down uint64 liveness_slash_interval = 5 [(gogoproto.moretags) = "yaml:\"liveness_slash_interval\""]; - // The time (num hub blocks) a sequencer can be down after which he will be jailed rather than slashed - uint64 liveness_jail_blocks = 6 [(gogoproto.moretags) = "yaml:\"liveness_jail_blocks\""]; // app_registration_fee is the fee for registering an App cosmos.base.v1beta1.Coin app_registration_fee = 7 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"app_registration_fee\"" ]; - // state_info_deletion_epoch_identifier is used to control the interval at which the state info records will be deleted. - string state_info_deletion_epoch_identifier = 8 - [ (gogoproto.moretags) = "yaml:\"state_info_deletion_epoch_identifier\"" ]; } diff --git a/proto/types/dymensionxyz/dymension/rollapp/query.proto b/proto/types/dymensionxyz/dymension/rollapp/query.proto index 49d214e15..6b41af003 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/query.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/query.proto @@ -9,6 +9,7 @@ import "types/dymensionxyz/dymension/rollapp/params.proto"; import "types/dymensionxyz/dymension/rollapp/rollapp.proto"; import "types/dymensionxyz/dymension/rollapp/state_info.proto"; import "types/dymensionxyz/dymension/rollapp/app.proto"; +import "types/dymensionxyz/dymension/rollapp/genesis_bridge_data.proto"; // Query defines the gRPC querier service. service Query { @@ -40,6 +41,9 @@ service Query { // Queries a list of obsolete DRS versions. rpc ObsoleteDRSVersions(QueryObsoleteDRSVersionsRequest) returns (QueryObsoleteDRSVersionsResponse) {} + + // Validates provided genesis bridge data against the hub. + rpc ValidateGenesisBridge(QueryValidateGenesisBridgeRequest) returns (QueryValidateGenesisBridgeResponse) {} } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -123,3 +127,13 @@ message QueryObsoleteDRSVersionsRequest {} message QueryObsoleteDRSVersionsResponse { repeated uint32 drs_versions = 1; } + +message QueryValidateGenesisBridgeRequest { + string rollappId = 1; + GenesisBridgeData data = 2 [ (gogoproto.nullable) = false ]; +} + +message QueryValidateGenesisBridgeResponse { + bool valid = 1; + string err = 2; +} diff --git a/proto/types/dymensionxyz/dymension/rollapp/rollapp.proto b/proto/types/dymensionxyz/dymension/rollapp/rollapp.proto index 61c7de7e9..be6d8e17d 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/rollapp.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/rollapp.proto @@ -9,6 +9,7 @@ import "types/cosmos/msg/v1/msg.proto"; import "types/dymensionxyz/dymension/rollapp/state_info.proto"; import "types/dymensionxyz/dymension/rollapp/metadata.proto"; +import "types/dymensionxyz/dymension/rollapp/genesis_info.proto"; // RollappGenesisState is a partial repr of the state the hub can expect the // rollapp to be in upon genesis @@ -40,10 +41,9 @@ message Rollapp { RollappGenesisState genesis_state = 7 [ (gogoproto.nullable) = false ]; // channel_id will be set to the canonical IBC channel of the rollapp. string channel_id = 8; - // frozen is a boolean that indicates if the rollapp is frozen. - bool frozen = 9; - reserved 10; + reserved 9,10; + // metadata is the rollapp metadata RollappMetadata metadata = 11; // genesis_info keeps immutable rollapp fields @@ -71,9 +71,9 @@ message Rollapp { // LivenessEventHeight is the height on the HUB of an upcoming liveness event (slash or // jail against the rollapp). 0 means not set int64 liveness_event_height = 17; - // The LastStateUpdateHeight HUB height when the last state update was - // received - int64 last_state_update_height = 18; + // The height on the HUB that we start counting liveness from. If the rollapp is not active + // for a long time after this height, a liveness event will happen. + int64 liveness_countdown_start_height = 18; // Revisions is a list of all the rollapp revisions. repeated Revision revisions = 19 [ (gogoproto.nullable) = false ]; @@ -87,41 +87,6 @@ message Revision { uint64 start_height = 20; } -message GenesisInfo { - // checksum used to verify integrity of the genesis file - string genesis_checksum = 1; - // unique bech32 prefix - string bech32_prefix = 2; - // native_denom is the base denom for the native token - DenomMetadata native_denom = 3 [ (gogoproto.nullable) = false ]; - // initial_supply is the initial supply of the native token - string initial_supply = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; - - // sealed indicates if the fields in this object are no longer updatable - bool sealed = 5; - - GenesisAccounts genesis_accounts = 6 [ (gogoproto.nullable) = true ]; -} - -message GenesisAccounts { - repeated GenesisAccount accounts = 1 [ (gogoproto.nullable) = false ]; -} - - -// GenesisAccount is a struct for the genesis account for the rollapp -message GenesisAccount { - // amount of coins to be sent to the genesis address - string amount = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; - // address is a bech-32 address of the genesis account - string address = 2; -} - // Rollapp summary is a compact representation of Rollapp message RollappSummary { // The unique identifier of the rollapp chain. diff --git a/proto/types/dymensionxyz/dymension/rollapp/state_info.proto b/proto/types/dymensionxyz/dymension/rollapp/state_info.proto index 9989c2f6c..6dbe60854 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/state_info.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/state_info.proto @@ -1,6 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; @@ -56,8 +53,9 @@ message StateInfo { (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"created_at\"" ]; - // next sequencer is the bech32-encoded address of the next sequencer after the current sequencer - // if empty, it means there is no change in the sequencer + + // NextProposer is the bech32-encoded address of the proposer that we expect to see in the next state info. + // Most of the time NextProposer is the current proposer. In case of rotation it is changed to the successor. string nextProposer = 11; } @@ -74,9 +72,11 @@ message StateInfoSummary { // BlockHeightToFinalizationQueue defines a map from block height to list of states to finalized message BlockHeightToFinalizationQueue { - // creationHeight is the block height that the state should be finalized + // CreationHeight is the block height that the state should be finalized uint64 creationHeight = 1; - // finalizationQueue is a list of states that are waiting to be finalized + // FinalizationQueue is a list of states that are waiting to be finalized // when the block height becomes creationHeight repeated StateInfoIndex finalizationQueue = 2 [(gogoproto.nullable) = false]; + // RollappID is the rollapp which the queue belongs to + string rollapp_id = 3; } diff --git a/proto/types/dymensionxyz/dymension/rollapp/tx.proto b/proto/types/dymensionxyz/dymension/rollapp/tx.proto index 74be2ff78..e56555342 100644 --- a/proto/types/dymensionxyz/dymension/rollapp/tx.proto +++ b/proto/types/dymensionxyz/dymension/rollapp/tx.proto @@ -1,7 +1,3 @@ -// This file is a modified copy of the rollapp module proto contract. Source: -// https://github.com/dymensionxyz/dymension/blob/f140cd1dd561cefb3e6562cbf4379b88cd16400d/proto/dymensionxyz/dymension/rollapp/. -// It contains only message definitions but without the Msg service. - syntax = "proto3"; package dymensionxyz.dymension.rollapp; @@ -11,6 +7,7 @@ import "types/cosmos/msg/v1/msg.proto"; import "types/dymensionxyz/dymension/rollapp/block_descriptor.proto"; import "types/dymensionxyz/dymension/rollapp/rollapp.proto"; import "types/dymensionxyz/dymension/rollapp/metadata.proto"; +import "types/dymensionxyz/dymension/rollapp/genesis_info.proto"; import "gogoproto/gogo.proto"; // MsgCreateRollapp creates a new rollapp chain on the hub. @@ -30,7 +27,7 @@ message MsgCreateRollapp { // metadata is the rollapp metadata RollappMetadata metadata = 13; // genesis_info is the genesis information - GenesisInfo genesis_info = 14 [(gogoproto.nullable) = false ]; + GenesisInfo genesis_info = 14 [(gogoproto.nullable) = true ]; // vm_type is the type of rollapp machine: EVM or WASM Rollapp.VMType vm_type = 15; } @@ -52,7 +49,7 @@ message MsgUpdateRollappInformation { // metadata is the rollapp metadata RollappMetadata metadata = 5 [(gogoproto.nullable) = true ]; // genesis_info is the genesis information - GenesisInfo genesis_info = 6 [(gogoproto.nullable) = false ]; + GenesisInfo genesis_info = 6 [(gogoproto.nullable) = true ]; } message MsgUpdateRollappInformationResponse { @@ -80,7 +77,7 @@ message MsgUpdateState { BlockDescriptors BDs = 7 [(gogoproto.nullable) = false]; // last is true if this is the last batch of the sequencer bool last = 8; - // rollapp_revision is the revision of the rollapp chain + // rollapp_revision is the revision of the rollapp chain. increases after hard fork uint64 rollapp_revision = 9; } @@ -161,15 +158,15 @@ message MsgRemoveApp { message MsgRemoveAppResponse { } -// MsgMarkVulnerableRollapps marks specified versions as vulnerable as well as +// MsgMarkObsoleteRollapps marks specified versions as obsolete as well as // all corresponding rollapps. Must be called by the governance. -message MsgMarkVulnerableRollapps { +message MsgMarkObsoleteRollapps { option (cosmos.msg.v1.signer) = "authority"; // Authority is the authority address. string authority = 1; - // DrsVersions is a list of DRS versions that will be marked vulnerable. + // DrsVersions is a list of DRS versions that will be marked obsolete. repeated uint32 drs_versions = 2; } -message MsgMarkVulnerableRollappsResponse {} +message MsgMarkObsoleteRollappsResponse {} diff --git a/proto/types/ibc/applications/transfer/v2/packet.proto b/proto/types/ibc/applications/transfer/v2/packet.proto new file mode 100644 index 000000000..5b3b004c6 --- /dev/null +++ b/proto/types/ibc/applications/transfer/v2/packet.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package ibc.applications.transfer.v2; + +option go_package = "github.com/cosmos/ibc-go/v6/modules/apps/transfer/types"; + +// FungibleTokenPacketData defines a struct for the packet payload +// See FungibleTokenPacketData spec: +// https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures +message FungibleTokenPacketData { + // the token denomination to be transferred + string denom = 1; + // the token amount to be transferred + string amount = 2; + // the sender address + string sender = 3; + // the recipient address on the destination chain + string receiver = 4; + // optional memo + string memo = 5; +} diff --git a/rpc/client/client_test.go b/rpc/client/client_test.go index 1434b142f..d963196d4 100644 --- a/rpc/client/client_test.go +++ b/rpc/client/client_test.go @@ -11,6 +11,7 @@ import ( "time" tmcfg "github.com/tendermint/tendermint/config" + tmjson "github.com/tendermint/tendermint/libs/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" @@ -37,6 +38,7 @@ import ( "github.com/dymensionxyz/dymint/settlement" "github.com/dymensionxyz/dymint/testutil" "github.com/dymensionxyz/dymint/types" + "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" "github.com/dymensionxyz/dymint/version" ) @@ -89,7 +91,8 @@ func TestGenesisChunked(t *testing.T) { genDoc := testutil.GenerateGenesis(1) mockApp := &tmmocks.MockApplication{} - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) mockApp.On("Info", mock.Anything).Return(expectedInfo) privKey, _, _ := crypto.GenerateEd25519Key(crand.Reader) signingKey, _, _ := crypto.GenerateEd25519Key(crand.Reader) @@ -158,7 +161,8 @@ func TestBroadcastTxAsync(t *testing.T) { mockApp, rpc, node := getRPCAndNode(t) mockApp.On("CheckTx", abci.RequestCheckTx{Tx: expectedTx}).Return(abci.ResponseCheckTx{}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(t, err) @@ -193,7 +197,8 @@ func TestBroadcastTxSync(t *testing.T) { } mockApp, rpc, node := getRPCAndNode(t) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(t, err) @@ -244,7 +249,8 @@ func TestBroadcastTxCommit(t *testing.T) { mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) mockApp.BeginBlock(abci.RequestBeginBlock{}) mockApp.On("CheckTx", abci.RequestCheckTx{Tx: expectedTx}).Return(expectedCheckResp) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) // in order to broadcast, the node must be started err := node.Start() require.NoError(err) @@ -280,7 +286,8 @@ func TestGetBlock(t *testing.T) { mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{}) mockApp.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{}) mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(err) @@ -306,7 +313,8 @@ func TestValidatedHeight(t *testing.T) { mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(err) @@ -391,7 +399,8 @@ func TestGetCommit(t *testing.T) { mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) blocks := []*types.Block{getRandomBlock(1, 5), getRandomBlock(2, 6), getRandomBlock(3, 8), getRandomBlock(4, 10)} @@ -431,7 +440,8 @@ func TestValidatorSetHashConsistency(t *testing.T) { mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) v := tmtypes.NewValidator(ed25519.GenPrivKey().PubKey(), 1) s := types.NewSequencerFromValidator(*v) @@ -539,7 +549,8 @@ func TestGetBlockByHash(t *testing.T) { mockApp.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{}) mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{}) mockApp.On("Info", mock.Anything).Return(abci.ResponseInfo{LastBlockHeight: 0, LastBlockAppHash: []byte{0}}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(err) @@ -592,7 +603,8 @@ func TestTx(t *testing.T) { mockApp.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{}) mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{}) mockApp.On("Info", mock.Anything).Return(abci.ResponseInfo{LastBlockHeight: 0, LastBlockAppHash: []byte{0}}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(err) @@ -640,7 +652,8 @@ func TestUnconfirmedTxs(t *testing.T) { mockApp, rpc, node := getRPCAndNode(t) mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{}) - mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) err := node.Start() require.NoError(err) @@ -802,7 +815,8 @@ func TestValidatorSetHandling(t *testing.T) { assert := assert.New(t) require := require.New(t) app := &tmmocks.MockApplication{} - app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}, nil) app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{}) app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) app.On("Info", mock.Anything).Return(abci.ResponseInfo{LastBlockHeight: 0, LastBlockAppHash: []byte{0}}) @@ -1095,7 +1109,8 @@ func TestMempool2Nodes(t *testing.T) { require := require.New(t) app := &tmmocks.MockApplication{} - app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}) app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) app.On("CheckTx", abci.RequestCheckTx{Tx: []byte("bad")}).Return(abci.ResponseCheckTx{Code: 1}) app.On("CheckTx", abci.RequestCheckTx{Tx: []byte("good")}).Return(abci.ResponseCheckTx{Code: 0}) diff --git a/rpc/json/service_test.go b/rpc/json/service_test.go index fd644295a..8c2e44a21 100644 --- a/rpc/json/service_test.go +++ b/rpc/json/service_test.go @@ -17,6 +17,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + tmjson "github.com/tendermint/tendermint/libs/json" "github.com/gorilla/rpc/v2/json2" "github.com/libp2p/go-libp2p/core/crypto" @@ -29,6 +30,7 @@ import ( "github.com/dymensionxyz/dymint/config" "github.com/dymensionxyz/dymint/mempool" tmmocks "github.com/dymensionxyz/dymint/mocks/github.com/tendermint/tendermint/abci/types" + "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" "github.com/dymensionxyz/dymint/node" "github.com/dymensionxyz/dymint/rpc/client" @@ -278,7 +280,8 @@ func getRPC(t *testing.T) (*tmmocks.MockApplication, *client.Client) { t.Helper() require := require.New(t) app := &tmmocks.MockApplication{} - app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapp.GenesisBridgeData{}) + app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}) app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{ RollappParamUpdates: &abci.RollappParams{ diff --git a/settlement/dymension/dymension.go b/settlement/dymension/dymension.go index 2041dc0de..6a995ef69 100644 --- a/settlement/dymension/dymension.go +++ b/settlement/dymension/dymension.go @@ -751,3 +751,31 @@ func (c *Client) GetSignerBalance() (types.Balance, error) { return balance, nil } + +func (c *Client) ValidateGenesisBridgeData(data rollapptypes.GenesisBridgeData) error { + var res *rollapptypes.QueryValidateGenesisBridgeResponse + req := &rollapptypes.QueryValidateGenesisBridgeRequest{ + RollappId: c.rollappId, + Data: data, + } + + err := c.RunWithRetry(func() error { + var err error + res, err = c.cosmosClient.GetRollappClient().ValidateGenesisBridge(c.ctx, req) + return err + }) + if err != nil { + return fmt.Errorf("rollapp client: validate genesis bridge: %w", err) + } + + // not supposed to happen, but just in case + if res == nil { + return fmt.Errorf("empty response: %w", gerrc.ErrUnknown) + } + + if !res.Valid || len(res.Err) != 0 { + return fmt.Errorf("genesis bridge data is invalid: %s", res.Err) + } + + return nil +} diff --git a/settlement/grpc/grpc.go b/settlement/grpc/grpc.go index 64fc61de9..c09c72798 100644 --- a/settlement/grpc/grpc.go +++ b/settlement/grpc/grpc.go @@ -403,3 +403,7 @@ func (c *Client) GetSignerBalance() (types.Balance, error) { Denom: "adym", }, nil } + +func (c *Client) ValidateGenesisBridgeData(rollapptypes.GenesisBridgeData) error { + return nil +} diff --git a/settlement/local/local.go b/settlement/local/local.go index 33c152cf1..4d8a64664 100644 --- a/settlement/local/local.go +++ b/settlement/local/local.go @@ -352,3 +352,7 @@ func (c *Client) GetSignerBalance() (types.Balance, error) { Denom: "adym", }, nil } + +func (c *Client) ValidateGenesisBridgeData(rollapptypes.GenesisBridgeData) error { + return nil +} diff --git a/settlement/settlement.go b/settlement/settlement.go index c98957318..4b03327a2 100644 --- a/settlement/settlement.go +++ b/settlement/settlement.go @@ -1,10 +1,11 @@ package settlement import ( + "github.com/tendermint/tendermint/libs/pubsub" + "github.com/dymensionxyz/dymint/da" "github.com/dymensionxyz/dymint/types" "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" - "github.com/tendermint/tendermint/libs/pubsub" ) // StatusCode is a type for settlement layer return status. @@ -100,4 +101,6 @@ type ClientI interface { GetObsoleteDrs() ([]uint32, error) // GetSignerBalance returns the balance of the signer. GetSignerBalance() (types.Balance, error) + // ValidateGenesisBridgeData validates the genesis bridge data. + ValidateGenesisBridgeData(data rollapp.GenesisBridgeData) error } diff --git a/testutil/mocks.go b/testutil/mocks.go index 01bed53bb..176f8d6d7 100644 --- a/testutil/mocks.go +++ b/testutil/mocks.go @@ -12,10 +12,9 @@ import ( "github.com/celestiaorg/celestia-openrpc/types/blob" "github.com/celestiaorg/celestia-openrpc/types/header" "github.com/celestiaorg/nmt" - tmmocks "github.com/dymensionxyz/dymint/mocks/github.com/tendermint/tendermint/abci/types" - "github.com/dymensionxyz/dymint/types" "github.com/stretchr/testify/mock" abci "github.com/tendermint/tendermint/abci/types" + tmjson "github.com/tendermint/tendermint/libs/json" "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/proxy" @@ -23,9 +22,11 @@ import ( "github.com/dymensionxyz/dymint/da/celestia" localda "github.com/dymensionxyz/dymint/da/local" "github.com/dymensionxyz/dymint/da/registry" - "github.com/dymensionxyz/dymint/store" - damocks "github.com/dymensionxyz/dymint/mocks/github.com/dymensionxyz/dymint/da/celestia/types" + tmmocks "github.com/dymensionxyz/dymint/mocks/github.com/tendermint/tendermint/abci/types" + "github.com/dymensionxyz/dymint/store" + "github.com/dymensionxyz/dymint/types" + rollapptypes "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp" ) // ABCIMethod is a string representing an ABCI method @@ -62,7 +63,8 @@ func GetABCIProxyAppMock(logger log.Logger) proxy.AppConns { // GetAppMock returns a dummy abci app mock for testing func GetAppMock(excludeMethods ...ABCIMethod) *tmmocks.MockApplication { app := &tmmocks.MockApplication{} - app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{}) + gbdBz, _ := tmjson.Marshal(rollapptypes.GenesisBridgeData{}) + app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{GenesisBridgeDataBytes: gbdBz}) app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{}) app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}) app.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{}) diff --git a/types/pb/dymensionxyz/dymension/rollapp/genesis.pb.go b/types/pb/dymensionxyz/dymension/rollapp/genesis.pb.go index 84c1d4ad8..446116d45 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/genesis.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/genesis.pb.go @@ -32,7 +32,12 @@ type GenesisState struct { LatestFinalizedStateIndexList []StateInfoIndex `protobuf:"bytes,5,rep,name=latestFinalizedStateIndexList,proto3" json:"latestFinalizedStateIndexList"` BlockHeightToFinalizationQueueList []BlockHeightToFinalizationQueue `protobuf:"bytes,6,rep,name=blockHeightToFinalizationQueueList,proto3" json:"blockHeightToFinalizationQueueList"` // LivenessEvents are scheduled upcoming liveness events - LivenessEvents []LivenessEvent `protobuf:"bytes,7,rep,name=livenessEvents,proto3" json:"livenessEvents"` + LivenessEvents []LivenessEvent `protobuf:"bytes,7,rep,name=livenessEvents,proto3" json:"livenessEvents"` + AppList []App `protobuf:"bytes,8,rep,name=appList,proto3" json:"appList"` + RegisteredDenoms []RollappRegisteredDenoms `protobuf:"bytes,9,rep,name=registeredDenoms,proto3" json:"registeredDenoms"` + SequencerHeightPairs []SequencerHeightPair `protobuf:"bytes,10,rep,name=sequencerHeightPairs,proto3" json:"sequencerHeightPairs"` + // ObsoleteDrsVersions is a list of DRS versions that are marked obsolete + ObsoleteDrsVersions []uint32 `protobuf:"varint,11,rep,packed,name=obsolete_drs_versions,json=obsoleteDrsVersions,proto3" json:"obsolete_drs_versions,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -117,8 +122,142 @@ func (m *GenesisState) GetLivenessEvents() []LivenessEvent { return nil } +func (m *GenesisState) GetAppList() []App { + if m != nil { + return m.AppList + } + return nil +} + +func (m *GenesisState) GetRegisteredDenoms() []RollappRegisteredDenoms { + if m != nil { + return m.RegisteredDenoms + } + return nil +} + +func (m *GenesisState) GetSequencerHeightPairs() []SequencerHeightPair { + if m != nil { + return m.SequencerHeightPairs + } + return nil +} + +func (m *GenesisState) GetObsoleteDrsVersions() []uint32 { + if m != nil { + return m.ObsoleteDrsVersions + } + return nil +} + +type SequencerHeightPair struct { + Sequencer string `protobuf:"bytes,1,opt,name=sequencer,proto3" json:"sequencer,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` +} + +func (m *SequencerHeightPair) Reset() { *m = SequencerHeightPair{} } +func (m *SequencerHeightPair) String() string { return proto.CompactTextString(m) } +func (*SequencerHeightPair) ProtoMessage() {} +func (*SequencerHeightPair) Descriptor() ([]byte, []int) { + return fileDescriptor_cbb9c396fa138f1f, []int{1} +} +func (m *SequencerHeightPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SequencerHeightPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SequencerHeightPair.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 *SequencerHeightPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_SequencerHeightPair.Merge(m, src) +} +func (m *SequencerHeightPair) XXX_Size() int { + return m.Size() +} +func (m *SequencerHeightPair) XXX_DiscardUnknown() { + xxx_messageInfo_SequencerHeightPair.DiscardUnknown(m) +} + +var xxx_messageInfo_SequencerHeightPair proto.InternalMessageInfo + +func (m *SequencerHeightPair) GetSequencer() string { + if m != nil { + return m.Sequencer + } + return "" +} + +func (m *SequencerHeightPair) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +type RollappRegisteredDenoms struct { + RollappId string `protobuf:"bytes,1,opt,name=rollapp_id,json=rollappId,proto3" json:"rollapp_id,omitempty"` + Denoms []string `protobuf:"bytes,2,rep,name=denoms,proto3" json:"denoms,omitempty"` +} + +func (m *RollappRegisteredDenoms) Reset() { *m = RollappRegisteredDenoms{} } +func (m *RollappRegisteredDenoms) String() string { return proto.CompactTextString(m) } +func (*RollappRegisteredDenoms) ProtoMessage() {} +func (*RollappRegisteredDenoms) Descriptor() ([]byte, []int) { + return fileDescriptor_cbb9c396fa138f1f, []int{2} +} +func (m *RollappRegisteredDenoms) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RollappRegisteredDenoms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RollappRegisteredDenoms.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 *RollappRegisteredDenoms) XXX_Merge(src proto.Message) { + xxx_messageInfo_RollappRegisteredDenoms.Merge(m, src) +} +func (m *RollappRegisteredDenoms) XXX_Size() int { + return m.Size() +} +func (m *RollappRegisteredDenoms) XXX_DiscardUnknown() { + xxx_messageInfo_RollappRegisteredDenoms.DiscardUnknown(m) +} + +var xxx_messageInfo_RollappRegisteredDenoms proto.InternalMessageInfo + +func (m *RollappRegisteredDenoms) GetRollappId() string { + if m != nil { + return m.RollappId + } + return "" +} + +func (m *RollappRegisteredDenoms) GetDenoms() []string { + if m != nil { + return m.Denoms + } + return nil +} + func init() { proto.RegisterType((*GenesisState)(nil), "dymensionxyz.dymension.rollapp.GenesisState") + proto.RegisterType((*SequencerHeightPair)(nil), "dymensionxyz.dymension.rollapp.SequencerHeightPair") + proto.RegisterType((*RollappRegisteredDenoms)(nil), "dymensionxyz.dymension.rollapp.RollappRegisteredDenoms") } func init() { @@ -126,34 +265,44 @@ func init() { } var fileDescriptor_cbb9c396fa138f1f = []byte{ - // 430 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcf, 0x6f, 0xda, 0x30, - 0x1c, 0xc5, 0x93, 0xf1, 0x63, 0x92, 0xd9, 0x76, 0xb0, 0x76, 0x88, 0x90, 0x96, 0x21, 0x0e, 0x1b, - 0x3b, 0x2c, 0xd1, 0x40, 0x3b, 0x55, 0xea, 0x01, 0xb5, 0xb4, 0x48, 0x48, 0x6d, 0xa1, 0xbd, 0xb4, - 0x07, 0xea, 0x80, 0x09, 0x56, 0x83, 0x1d, 0xc5, 0x06, 0x01, 0x7f, 0x45, 0x0f, 0xfd, 0xa3, 0x38, - 0x72, 0xec, 0x09, 0x55, 0xf0, 0x8f, 0x54, 0x38, 0x0e, 0xa5, 0xad, 0x4a, 0x52, 0xf5, 0xe4, 0x58, - 0x7e, 0xef, 0xf3, 0x9e, 0xad, 0x7c, 0x41, 0x59, 0x4c, 0x7c, 0xcc, 0xed, 0xee, 0x64, 0x80, 0x29, - 0x27, 0x8c, 0x8e, 0x27, 0xd3, 0xa7, 0x8d, 0x1d, 0x30, 0xcf, 0x43, 0xbe, 0x6f, 0xbb, 0x98, 0x62, - 0x4e, 0xb8, 0xe5, 0x07, 0x4c, 0x30, 0x68, 0x6e, 0xab, 0xad, 0xcd, 0xc6, 0x52, 0xea, 0xfc, 0x77, - 0x97, 0xb9, 0x4c, 0x4a, 0xed, 0xf5, 0x57, 0xe8, 0xca, 0xff, 0x4b, 0x94, 0xe4, 0xa3, 0x00, 0x0d, - 0x54, 0x50, 0x3e, 0x59, 0x39, 0xb5, 0x2a, 0xcf, 0xff, 0x44, 0x1e, 0x2e, 0x90, 0xc0, 0x6d, 0x42, - 0x7b, 0x51, 0xbb, 0xbd, 0xf7, 0xbc, 0x43, 0x5b, 0x04, 0x88, 0xf2, 0x1e, 0x0e, 0x94, 0xb9, 0x92, - 0xc8, 0xec, 0x91, 0xd1, 0xda, 0xae, 0x2e, 0x57, 0x5c, 0x64, 0xc0, 0x97, 0xa3, 0x90, 0xd7, 0x5a, - 0xb7, 0x81, 0x07, 0x20, 0x1b, 0xde, 0xde, 0xd0, 0x0b, 0x7a, 0x29, 0x57, 0xfe, 0x65, 0xed, 0x7e, - 0x67, 0xeb, 0x54, 0xaa, 0xab, 0xe9, 0xd9, 0xe2, 0xa7, 0xd6, 0x54, 0x5e, 0x78, 0x02, 0x72, 0xea, - 0xbc, 0x41, 0xb8, 0x30, 0x3e, 0x15, 0x52, 0xa5, 0x5c, 0xf9, 0x77, 0x1c, 0xaa, 0x19, 0xae, 0x8a, - 0xb5, 0x4d, 0x80, 0x17, 0xe0, 0xab, 0x7c, 0xad, 0x3a, 0xed, 0x31, 0x89, 0x4c, 0x49, 0xe4, 0x9f, - 0x38, 0x64, 0x2b, 0x32, 0x29, 0xe8, 0x73, 0x0a, 0xf4, 0x81, 0xe1, 0x21, 0x81, 0xb9, 0xd8, 0xe8, - 0xea, 0xb4, 0x8b, 0xc7, 0x32, 0x21, 0x2d, 0x13, 0xac, 0xc4, 0x09, 0xd2, 0xa9, 0x62, 0xde, 0xa4, - 0xc2, 0x29, 0xf8, 0x11, 0x9e, 0xd5, 0x08, 0x45, 0x1e, 0x99, 0xe2, 0xae, 0x12, 0x45, 0xb1, 0x99, - 0x0f, 0xc4, 0xee, 0x46, 0xc3, 0x3b, 0x1d, 0x14, 0x1d, 0x8f, 0x75, 0x6e, 0x8e, 0x31, 0x71, 0xfb, - 0xe2, 0x9c, 0x29, 0x21, 0x12, 0x84, 0xd1, 0xb3, 0x21, 0x1e, 0x62, 0xd9, 0x20, 0x2b, 0x1b, 0xec, - 0xc7, 0x35, 0xa8, 0xee, 0x24, 0xa9, 0x46, 0x09, 0xf2, 0xe0, 0x15, 0xf8, 0x16, 0xfd, 0x95, 0x87, - 0x23, 0x4c, 0x05, 0x37, 0x3e, 0xcb, 0x06, 0x7f, 0xe3, 0x1a, 0x34, 0xb6, 0x5d, 0x2a, 0xf0, 0x05, - 0xaa, 0x7a, 0x3d, 0x5b, 0x9a, 0xfa, 0x7c, 0x69, 0xea, 0x0f, 0x4b, 0x53, 0xbf, 0x5d, 0x99, 0xda, - 0x7c, 0x65, 0x6a, 0xf7, 0x2b, 0x53, 0xbb, 0xac, 0xb9, 0x44, 0xf4, 0x87, 0x8e, 0xd5, 0x61, 0x83, - 0x57, 0x43, 0x43, 0xa8, 0xb0, 0xc3, 0x71, 0xf2, 0x9d, 0x98, 0x89, 0x72, 0xb2, 0x72, 0x92, 0x2a, - 0x8f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x44, 0x7a, 0x7f, 0x11, 0xc5, 0x04, 0x00, 0x00, + // 591 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x6f, 0x12, 0x41, + 0x14, 0xc7, 0xd9, 0x82, 0xb4, 0x0c, 0xd6, 0x98, 0x69, 0xd5, 0x0d, 0xb1, 0x2b, 0xc1, 0x44, 0xf1, + 0xe0, 0x12, 0x21, 0xc6, 0x9b, 0x89, 0x88, 0x55, 0x62, 0x13, 0x71, 0xab, 0x1e, 0xf4, 0x80, 0x0b, + 0xfb, 0xba, 0x4c, 0x5c, 0x66, 0xd6, 0x9d, 0x81, 0x14, 0x3e, 0x85, 0x07, 0xbf, 0x88, 0xdf, 0xa2, + 0xc7, 0x1e, 0x3d, 0x19, 0x03, 0x5f, 0xc4, 0xec, 0xec, 0x2c, 0xc5, 0xd2, 0xb2, 0x9b, 0xf4, 0xb4, + 0xcc, 0xce, 0xfb, 0xff, 0xfe, 0xff, 0x7d, 0xbc, 0x3c, 0x54, 0x17, 0x13, 0x1f, 0x78, 0xcd, 0x99, + 0x0c, 0x81, 0x72, 0xc2, 0xe8, 0xf1, 0x64, 0x7a, 0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0x79, 0x8b, 0x76, 0x2e, 0xb0, 0xc1, 0x77, 0x51, 0x61, 0x61, 0x21, + 0x97, 0x47, 0xc1, 0x3a, 0x7b, 0x81, 0x6f, 0xa3, 0xfc, 0x40, 0xd6, 0xea, 0x1b, 0x65, 0xad, 0x9a, + 0xb3, 0xd4, 0xa9, 0xd2, 0x41, 0x77, 0x2e, 0x69, 0x11, 0xde, 0x43, 0x48, 0x7d, 0x56, 0x97, 0x38, + 0x31, 0x51, 0xbd, 0x69, 0x3b, 0x21, 0xd1, 0x89, 0xfe, 0x8a, 0x70, 0xbd, 0x14, 0x2c, 0x75, 0x6a, + 0x7e, 0x3d, 0x99, 0x19, 0xda, 0xe9, 0xcc, 0xd0, 0xfe, 0xce, 0x0c, 0xed, 0xc7, 0xdc, 0xc8, 0x9c, + 0xce, 0x8d, 0xcc, 0xef, 0xb9, 0x91, 0xf9, 0xbc, 0xef, 0x12, 0x31, 0x18, 0xf5, 0xcc, 0x3e, 0x1b, + 0xae, 0x6c, 0x48, 0x42, 0x45, 0x2d, 0xda, 0x9d, 0x7e, 0x2f, 0x61, 0x7d, 0xf6, 0xf2, 0x72, 0x77, + 0x36, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x17, 0xee, 0x08, 0x93, 0xaa, 0x06, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -176,6 +325,66 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.ObsoleteDrsVersions) > 0 { + dAtA2 := make([]byte, len(m.ObsoleteDrsVersions)*10) + var j1 int + for _, num := range m.ObsoleteDrsVersions { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintGenesis(dAtA, i, uint64(j1)) + i-- + dAtA[i] = 0x5a + } + if len(m.SequencerHeightPairs) > 0 { + for iNdEx := len(m.SequencerHeightPairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SequencerHeightPairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.RegisteredDenoms) > 0 { + for iNdEx := len(m.RegisteredDenoms) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegisteredDenoms[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.AppList) > 0 { + for iNdEx := len(m.AppList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AppList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } if len(m.LivenessEvents) > 0 { for iNdEx := len(m.LivenessEvents) - 1; iNdEx >= 0; iNdEx-- { { @@ -273,6 +482,80 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *SequencerHeightPair) 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 *SequencerHeightPair) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SequencerHeightPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sequencer) > 0 { + i -= len(m.Sequencer) + copy(dAtA[i:], m.Sequencer) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Sequencer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RollappRegisteredDenoms) 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 *RollappRegisteredDenoms) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RollappRegisteredDenoms) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denoms) > 0 { + for iNdEx := len(m.Denoms) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Denoms[iNdEx]) + copy(dAtA[i:], m.Denoms[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denoms[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.RollappId) > 0 { + i -= len(m.RollappId) + copy(dAtA[i:], m.RollappId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.RollappId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { offset -= sovGenesis(v) base := offset @@ -328,6 +611,66 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.AppList) > 0 { + for _, e := range m.AppList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.RegisteredDenoms) > 0 { + for _, e := range m.RegisteredDenoms { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.SequencerHeightPairs) > 0 { + for _, e := range m.SequencerHeightPairs { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ObsoleteDrsVersions) > 0 { + l = 0 + for _, e := range m.ObsoleteDrsVersions { + l += sovGenesis(uint64(e)) + } + n += 1 + sovGenesis(uint64(l)) + l + } + return n +} + +func (m *SequencerHeightPair) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sequencer) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovGenesis(uint64(m.Height)) + } + return n +} + +func (m *RollappRegisteredDenoms) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RollappId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Denoms) > 0 { + for _, s := range m.Denoms { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -603,6 +946,399 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppList = append(m.AppList, App{}) + if err := m.AppList[len(m.AppList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegisteredDenoms", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RegisteredDenoms = append(m.RegisteredDenoms, RollappRegisteredDenoms{}) + if err := m.RegisteredDenoms[len(m.RegisteredDenoms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SequencerHeightPairs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SequencerHeightPairs = append(m.SequencerHeightPairs, SequencerHeightPair{}) + if err := m.SequencerHeightPairs[len(m.SequencerHeightPairs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ObsoleteDrsVersions = append(m.ObsoleteDrsVersions, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ObsoleteDrsVersions) == 0 { + m.ObsoleteDrsVersions = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ObsoleteDrsVersions = append(m.ObsoleteDrsVersions, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ObsoleteDrsVersions", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SequencerHeightPair) 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 ErrIntOverflowGenesis + } + 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: SequencerHeightPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SequencerHeightPair: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequencer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sequencer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RollappRegisteredDenoms) 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 ErrIntOverflowGenesis + } + 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: RollappRegisteredDenoms: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RollappRegisteredDenoms: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RollappId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RollappId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/types/pb/dymensionxyz/dymension/rollapp/genesis_bridge_data.pb.go b/types/pb/dymensionxyz/dymension/rollapp/genesis_bridge_data.pb.go new file mode 100644 index 000000000..52a2183d5 --- /dev/null +++ b/types/pb/dymensionxyz/dymension/rollapp/genesis_bridge_data.pb.go @@ -0,0 +1,853 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: types/dymensionxyz/dymension/rollapp/genesis_bridge_data.proto + +package rollapp + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/x/bank/types" + types1 "github.com/cosmos/ibc-go/v6/modules/apps/transfer/types" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = 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 + +// GenesisBridgeData is the data struct that is passed to the hub for the +// genesis bridge flow +type GenesisBridgeData struct { + // genesis_info is the genesis info of the rollapp. used for hub validation + GenesisInfo GenesisBridgeInfo `protobuf:"bytes,1,opt,name=genesis_info,json=genesisInfo,proto3" json:"genesis_info"` + // native_denom is the native denom of the rollapp. registered on the hub + NativeDenom types.Metadata `protobuf:"bytes,2,opt,name=native_denom,json=nativeDenom,proto3" json:"native_denom"` + // optional genesis transfer packet data + GenesisTransfer *types1.FungibleTokenPacketData `protobuf:"bytes,3,opt,name=genesis_transfer,json=genesisTransfer,proto3" json:"genesis_transfer,omitempty"` +} + +func (m *GenesisBridgeData) Reset() { *m = GenesisBridgeData{} } +func (m *GenesisBridgeData) String() string { return proto.CompactTextString(m) } +func (*GenesisBridgeData) ProtoMessage() {} +func (*GenesisBridgeData) Descriptor() ([]byte, []int) { + return fileDescriptor_2d00fdbfde77a000, []int{0} +} +func (m *GenesisBridgeData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisBridgeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisBridgeData.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 *GenesisBridgeData) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisBridgeData.Merge(m, src) +} +func (m *GenesisBridgeData) XXX_Size() int { + return m.Size() +} +func (m *GenesisBridgeData) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisBridgeData.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisBridgeData proto.InternalMessageInfo + +func (m *GenesisBridgeData) GetGenesisInfo() GenesisBridgeInfo { + if m != nil { + return m.GenesisInfo + } + return GenesisBridgeInfo{} +} + +func (m *GenesisBridgeData) GetNativeDenom() types.Metadata { + if m != nil { + return m.NativeDenom + } + return types.Metadata{} +} + +func (m *GenesisBridgeData) GetGenesisTransfer() *types1.FungibleTokenPacketData { + if m != nil { + return m.GenesisTransfer + } + return nil +} + +// The genesis info of the rollapp, that is passed to the hub for validation. +// it's populated on the InitGenesis of the rollapp +type GenesisBridgeInfo struct { + // checksum used to verify integrity of the genesis file. currently unused + GenesisChecksum string `protobuf:"bytes,1,opt,name=genesis_checksum,json=genesisChecksum,proto3" json:"genesis_checksum,omitempty"` + // unique bech32 prefix + Bech32Prefix string `protobuf:"bytes,2,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"` + // native_denom is the base denom for the native token + NativeDenom DenomMetadata `protobuf:"bytes,3,opt,name=native_denom,json=nativeDenom,proto3" json:"native_denom"` + // initial_supply is the initial supply of the native token + InitialSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=initial_supply,json=initialSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_supply"` + // accounts on the Hub to fund with some bootstrapping transfers + GenesisAccounts []GenesisAccount `protobuf:"bytes,5,rep,name=genesis_accounts,json=genesisAccounts,proto3" json:"genesis_accounts"` +} + +func (m *GenesisBridgeInfo) Reset() { *m = GenesisBridgeInfo{} } +func (m *GenesisBridgeInfo) String() string { return proto.CompactTextString(m) } +func (*GenesisBridgeInfo) ProtoMessage() {} +func (*GenesisBridgeInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_2d00fdbfde77a000, []int{1} +} +func (m *GenesisBridgeInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisBridgeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisBridgeInfo.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 *GenesisBridgeInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisBridgeInfo.Merge(m, src) +} +func (m *GenesisBridgeInfo) XXX_Size() int { + return m.Size() +} +func (m *GenesisBridgeInfo) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisBridgeInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisBridgeInfo proto.InternalMessageInfo + +func (m *GenesisBridgeInfo) GetGenesisChecksum() string { + if m != nil { + return m.GenesisChecksum + } + return "" +} + +func (m *GenesisBridgeInfo) GetBech32Prefix() string { + if m != nil { + return m.Bech32Prefix + } + return "" +} + +func (m *GenesisBridgeInfo) GetNativeDenom() DenomMetadata { + if m != nil { + return m.NativeDenom + } + return DenomMetadata{} +} + +func (m *GenesisBridgeInfo) GetGenesisAccounts() []GenesisAccount { + if m != nil { + return m.GenesisAccounts + } + return nil +} + +func init() { + proto.RegisterType((*GenesisBridgeData)(nil), "dymensionxyz.dymension.rollapp.GenesisBridgeData") + proto.RegisterType((*GenesisBridgeInfo)(nil), "dymensionxyz.dymension.rollapp.GenesisBridgeInfo") +} + +func init() { + proto.RegisterFile("types/dymensionxyz/dymension/rollapp/genesis_bridge_data.proto", fileDescriptor_2d00fdbfde77a000) +} + +var fileDescriptor_2d00fdbfde77a000 = []byte{ + // 520 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0xdb, 0x6d, 0x20, 0x2d, 0xed, 0xf8, 0x13, 0x71, 0xa8, 0x2a, 0x91, 0x4d, 0x03, 0xa1, + 0x71, 0x98, 0xad, 0xa6, 0x42, 0xdc, 0x90, 0x28, 0x53, 0xd1, 0x0e, 0x48, 0x53, 0x19, 0x1c, 0x76, + 0xc9, 0x6c, 0xc7, 0x4d, 0xad, 0x24, 0xb6, 0x15, 0x3b, 0xd5, 0xca, 0xa7, 0xe0, 0xca, 0x37, 0xda, + 0x71, 0x47, 0xc4, 0x61, 0x42, 0xed, 0x47, 0xe0, 0x0b, 0xa0, 0xd8, 0xce, 0x5a, 0x7a, 0xd8, 0xc6, + 0x29, 0xf1, 0xab, 0xf7, 0x79, 0xfc, 0x3e, 0x3f, 0xbd, 0xf6, 0xde, 0xe9, 0x99, 0xa4, 0x0a, 0xc6, + 0xb3, 0x9c, 0x72, 0xc5, 0x04, 0xbf, 0x98, 0x7d, 0x5b, 0x1e, 0x60, 0x21, 0xb2, 0x0c, 0x49, 0x09, + 0x13, 0xca, 0xa9, 0x62, 0x2a, 0xc2, 0x05, 0x8b, 0x13, 0x1a, 0xc5, 0x48, 0x23, 0x20, 0x0b, 0xa1, + 0x85, 0x1f, 0xac, 0x2a, 0xc1, 0xcd, 0x01, 0x38, 0x65, 0xf7, 0x59, 0x22, 0x12, 0x61, 0x5a, 0x61, + 0xf5, 0x67, 0x55, 0xdd, 0x97, 0xf6, 0x56, 0x22, 0x54, 0x2e, 0x14, 0xc4, 0x88, 0xa7, 0x70, 0xda, + 0xc3, 0x54, 0xa3, 0x9e, 0x39, 0xb8, 0x2e, 0x68, 0xbb, 0x18, 0x26, 0x10, 0x49, 0x99, 0x31, 0x82, + 0x34, 0x13, 0x5c, 0x41, 0x5d, 0x20, 0xae, 0xc6, 0xb4, 0x80, 0xd3, 0x10, 0x4a, 0x44, 0x52, 0xaa, + 0x9d, 0xa0, 0x7f, 0xaf, 0x30, 0x39, 0xd5, 0x68, 0x99, 0xa0, 0xfb, 0xf6, 0xbf, 0x08, 0x30, 0x3e, + 0x76, 0x21, 0xf6, 0x7f, 0x6c, 0x78, 0x4f, 0x3f, 0xda, 0xf2, 0xc0, 0x70, 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, 0xad, 0xea, 0xf6, 0x01, 0xa8, 0x5a, 0x7f, 0x5d, 0xef, 0xbe, 0x4a, 0x98, 0x9e, 0x94, 0x18, + 0x10, 0x91, 0xd7, 0x3b, 0x6c, 0x3f, 0x87, 0x2a, 0x4e, 0xed, 0xd6, 0x82, 0x63, 0xae, 0x47, 0x3b, + 0xce, 0xe5, 0xb3, 0x31, 0xf1, 0xa3, 0x65, 0x7c, 0x44, 0x88, 0x28, 0xb9, 0x56, 0x9d, 0x07, 0x7b, + 0x9b, 0x07, 0xad, 0x10, 0xdc, 0x73, 0x3d, 0xde, 0x5b, 0x99, 0x9b, 0xb9, 0x86, 0xe6, 0xaa, 0x6a, + 0x70, 0x7e, 0x39, 0x0f, 0x9a, 0x57, 0xf3, 0xa0, 0xf9, 0x7b, 0x1e, 0x34, 0xbf, 0x2f, 0x82, 0xc6, + 0xd5, 0x22, 0x68, 0xfc, 0x5c, 0x04, 0x8d, 0xb3, 0xe1, 0xca, 0xc4, 0xeb, 0x9b, 0xce, 0xb8, 0x76, + 0x2f, 0x4d, 0xe2, 0x3b, 0x9e, 0x01, 0x7e, 0x68, 0x56, 0xbf, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, + 0x48, 0x36, 0x95, 0xde, 0x37, 0x04, 0x00, 0x00, +} + +func (m *GenesisBridgeData) 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 *GenesisBridgeData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisBridgeData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.GenesisTransfer != nil { + { + size, err := m.GenesisTransfer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size, err := m.NativeDenom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.GenesisInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GenesisBridgeInfo) 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 *GenesisBridgeInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisBridgeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.GenesisAccounts) > 0 { + for iNdEx := len(m.GenesisAccounts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GenesisAccounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + { + size := m.InitialSupply.Size() + i -= size + if _, err := m.InitialSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.NativeDenom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Bech32Prefix) > 0 { + i -= len(m.Bech32Prefix) + copy(dAtA[i:], m.Bech32Prefix) + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(len(m.Bech32Prefix))) + i-- + dAtA[i] = 0x12 + } + if len(m.GenesisChecksum) > 0 { + i -= len(m.GenesisChecksum) + copy(dAtA[i:], m.GenesisChecksum) + i = encodeVarintGenesisBridgeData(dAtA, i, uint64(len(m.GenesisChecksum))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesisBridgeData(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesisBridgeData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisBridgeData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.GenesisInfo.Size() + n += 1 + l + sovGenesisBridgeData(uint64(l)) + l = m.NativeDenom.Size() + n += 1 + l + sovGenesisBridgeData(uint64(l)) + if m.GenesisTransfer != nil { + l = m.GenesisTransfer.Size() + n += 1 + l + sovGenesisBridgeData(uint64(l)) + } + return n +} + +func (m *GenesisBridgeInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GenesisChecksum) + if l > 0 { + n += 1 + l + sovGenesisBridgeData(uint64(l)) + } + l = len(m.Bech32Prefix) + if l > 0 { + n += 1 + l + sovGenesisBridgeData(uint64(l)) + } + l = m.NativeDenom.Size() + n += 1 + l + sovGenesisBridgeData(uint64(l)) + l = m.InitialSupply.Size() + n += 1 + l + sovGenesisBridgeData(uint64(l)) + if len(m.GenesisAccounts) > 0 { + for _, e := range m.GenesisAccounts { + l = e.Size() + n += 1 + l + sovGenesisBridgeData(uint64(l)) + } + } + return n +} + +func sovGenesisBridgeData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesisBridgeData(x uint64) (n int) { + return sovGenesisBridgeData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisBridgeData) 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 ErrIntOverflowGenesisBridgeData + } + 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: GenesisBridgeData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisBridgeData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.GenesisInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NativeDenom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NativeDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisTransfer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GenesisTransfer == nil { + m.GenesisTransfer = &types1.FungibleTokenPacketData{} + } + if err := m.GenesisTransfer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesisBridgeData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisBridgeInfo) 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 ErrIntOverflowGenesisBridgeData + } + 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: GenesisBridgeInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisBridgeInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisChecksum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + 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 ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GenesisChecksum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + 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 ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NativeDenom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NativeDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + 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 ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InitialSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisAccounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisBridgeData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisBridgeData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GenesisAccounts = append(m.GenesisAccounts, GenesisAccount{}) + if err := m.GenesisAccounts[len(m.GenesisAccounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesisBridgeData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesisBridgeData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesisBridgeData(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, ErrIntOverflowGenesisBridgeData + } + 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, ErrIntOverflowGenesisBridgeData + } + 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, ErrIntOverflowGenesisBridgeData + } + 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, ErrInvalidLengthGenesisBridgeData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesisBridgeData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesisBridgeData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesisBridgeData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesisBridgeData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesisBridgeData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/pb/dymensionxyz/dymension/rollapp/genesis_info.pb.go b/types/pb/dymensionxyz/dymension/rollapp/genesis_info.pb.go new file mode 100644 index 000000000..0e85337b9 --- /dev/null +++ b/types/pb/dymensionxyz/dymension/rollapp/genesis_info.pb.go @@ -0,0 +1,998 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: types/dymensionxyz/dymension/rollapp/genesis_info.proto + +package rollapp + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = 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 + +type GenesisInfo struct { + // checksum used to verify integrity of the genesis file + GenesisChecksum string `protobuf:"bytes,1,opt,name=genesis_checksum,json=genesisChecksum,proto3" json:"genesis_checksum,omitempty"` + // unique bech32 prefix + Bech32Prefix string `protobuf:"bytes,2,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"` + // native_denom is the base denom for the native token + NativeDenom DenomMetadata `protobuf:"bytes,3,opt,name=native_denom,json=nativeDenom,proto3" json:"native_denom"` + // initial_supply is the initial supply of the native token + InitialSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=initial_supply,json=initialSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_supply"` + // sealed indicates if the fields in this object are no longer updatable + Sealed bool `protobuf:"varint,5,opt,name=sealed,proto3" json:"sealed,omitempty"` + GenesisAccounts *GenesisAccounts `protobuf:"bytes,6,opt,name=genesis_accounts,json=genesisAccounts,proto3" json:"genesis_accounts,omitempty"` +} + +func (m *GenesisInfo) Reset() { *m = GenesisInfo{} } +func (m *GenesisInfo) String() string { return proto.CompactTextString(m) } +func (*GenesisInfo) ProtoMessage() {} +func (*GenesisInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_edccaf681be65748, []int{0} +} +func (m *GenesisInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisInfo.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 *GenesisInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisInfo.Merge(m, src) +} +func (m *GenesisInfo) XXX_Size() int { + return m.Size() +} +func (m *GenesisInfo) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisInfo proto.InternalMessageInfo + +func (m *GenesisInfo) GetGenesisChecksum() string { + if m != nil { + return m.GenesisChecksum + } + return "" +} + +func (m *GenesisInfo) GetBech32Prefix() string { + if m != nil { + return m.Bech32Prefix + } + return "" +} + +func (m *GenesisInfo) GetNativeDenom() DenomMetadata { + if m != nil { + return m.NativeDenom + } + return DenomMetadata{} +} + +func (m *GenesisInfo) GetSealed() bool { + if m != nil { + return m.Sealed + } + return false +} + +func (m *GenesisInfo) GetGenesisAccounts() *GenesisAccounts { + if m != nil { + return m.GenesisAccounts + } + return nil +} + +type GenesisAccounts struct { + Accounts []GenesisAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"` +} + +func (m *GenesisAccounts) Reset() { *m = GenesisAccounts{} } +func (m *GenesisAccounts) String() string { return proto.CompactTextString(m) } +func (*GenesisAccounts) ProtoMessage() {} +func (*GenesisAccounts) Descriptor() ([]byte, []int) { + return fileDescriptor_edccaf681be65748, []int{1} +} +func (m *GenesisAccounts) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisAccounts.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 *GenesisAccounts) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisAccounts.Merge(m, src) +} +func (m *GenesisAccounts) XXX_Size() int { + return m.Size() +} +func (m *GenesisAccounts) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisAccounts.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisAccounts proto.InternalMessageInfo + +func (m *GenesisAccounts) GetAccounts() []GenesisAccount { + if m != nil { + return m.Accounts + } + return nil +} + +// GenesisAccount is a struct for the genesis account for the rollapp +type GenesisAccount struct { + // amount of coins to be sent to the genesis address + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + // address is a bech-32 address of the genesis account + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *GenesisAccount) Reset() { *m = GenesisAccount{} } +func (m *GenesisAccount) String() string { return proto.CompactTextString(m) } +func (*GenesisAccount) ProtoMessage() {} +func (*GenesisAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_edccaf681be65748, []int{2} +} +func (m *GenesisAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisAccount.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 *GenesisAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisAccount.Merge(m, src) +} +func (m *GenesisAccount) XXX_Size() int { + return m.Size() +} +func (m *GenesisAccount) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisAccount proto.InternalMessageInfo + +func (m *GenesisAccount) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func init() { + proto.RegisterType((*GenesisInfo)(nil), "dymensionxyz.dymension.rollapp.GenesisInfo") + proto.RegisterType((*GenesisAccounts)(nil), "dymensionxyz.dymension.rollapp.GenesisAccounts") + proto.RegisterType((*GenesisAccount)(nil), "dymensionxyz.dymension.rollapp.GenesisAccount") +} + +func init() { + proto.RegisterFile("types/dymensionxyz/dymension/rollapp/genesis_info.proto", fileDescriptor_edccaf681be65748) +} + +var fileDescriptor_edccaf681be65748 = []byte{ + // 473 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6f, 0x13, 0x31, + 0x10, 0x8d, 0x49, 0x09, 0xc5, 0xe9, 0x07, 0xb2, 0x10, 0x5a, 0x55, 0x62, 0x13, 0x05, 0x09, 0x85, + 0x43, 0x6d, 0x91, 0x1c, 0x38, 0x13, 0x50, 0x51, 0x0f, 0x48, 0x55, 0x10, 0x1c, 0xb8, 0xa4, 0xde, + 0x5d, 0x67, 0x63, 0x75, 0xfd, 0xa1, 0xb5, 0xb7, 0x6a, 0xf8, 0x01, 0x9c, 0xf9, 0x59, 0x3d, 0xf6, + 0x88, 0x38, 0x54, 0x28, 0xf9, 0x23, 0x68, 0x6d, 0x27, 0x2d, 0x3d, 0x50, 0x72, 0xb2, 0x67, 0xfc, + 0xde, 0xcc, 0xbc, 0xe7, 0x81, 0x6f, 0xec, 0x5c, 0x33, 0x43, 0xb2, 0xb9, 0x60, 0xd2, 0x70, 0x25, + 0x2f, 0xe6, 0xdf, 0x6e, 0x02, 0x52, 0xaa, 0xa2, 0xa0, 0x5a, 0x93, 0x9c, 0x49, 0x66, 0xb8, 0x99, + 0x70, 0x39, 0x55, 0x58, 0x97, 0xca, 0x2a, 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a, 0x70, 0xaa, + 0xc4, 0xca, 0x30, 0x7f, 0x1c, 0x9a, 0xec, 0x8c, 0x38, 0xa7, 0xf0, 0xb1, 0xb4, 0xe3, 0xdd, 0x50, + 0xe5, 0x93, 0x2b, 0x82, 0x9e, 0xc1, 0x96, 0x61, 0xb4, 0x60, 0x59, 0xf4, 0xb0, 0x0b, 0xfa, 0xdb, + 0xe3, 0x10, 0xa1, 0xd3, 0x1b, 0x5b, 0x68, 0x9a, 0xaa, 0x4a, 0x5a, 0x13, 0xb5, 0x9c, 0x14, 0x72, + 0x9f, 0x94, 0xe0, 0xee, 0xdb, 0x40, 0x73, 0x62, 0xc0, 0xda, 0xcd, 0x55, 0xba, 0x97, 0xc2, 0xfd, + 0x3b, 0x48, 0x74, 0x02, 0xb7, 0xd7, 0xcd, 0x40, 0xb7, 0xd9, 0x6f, 0x0f, 0xf0, 0x66, 0xcd, 0x82, + 0x71, 0xeb, 0x2a, 0xbd, 0x12, 0xee, 0xfd, 0x8d, 0x40, 0x47, 0xb0, 0x45, 0x45, 0x7d, 0xf3, 0xbf, + 0xbc, 0xb1, 0x7f, 0x81, 0x8d, 0x22, 0xf8, 0x88, 0x66, 0x59, 0xc9, 0x8c, 0x09, 0x6b, 0xb0, 0x0a, + 0x47, 0xa7, 0x97, 0x8b, 0x18, 0x5c, 0x2d, 0x62, 0xf0, 0x7b, 0x11, 0x83, 0x1f, 0xcb, 0xb8, 0x71, + 0xb5, 0x8c, 0x1b, 0x3f, 0x97, 0x71, 0xe3, 0xeb, 0xd1, 0xad, 0x1e, 0x77, 0xb7, 0x96, 0x4b, 0xeb, + 0xbb, 0x10, 0x9d, 0xdc, 0xb3, 0xd2, 0x49, 0xcb, 0xad, 0xf2, 0xf0, 0x4f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x81, 0xe8, 0xa7, 0x56, 0xb0, 0x03, 0x00, 0x00, +} + +func (m *GenesisInfo) 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 *GenesisInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.GenesisAccounts != nil { + { + size, err := m.GenesisAccounts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisInfo(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.Sealed { + i-- + if m.Sealed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + { + size := m.InitialSupply.Size() + i -= size + if _, err := m.InitialSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesisInfo(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.NativeDenom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisInfo(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Bech32Prefix) > 0 { + i -= len(m.Bech32Prefix) + copy(dAtA[i:], m.Bech32Prefix) + i = encodeVarintGenesisInfo(dAtA, i, uint64(len(m.Bech32Prefix))) + i-- + dAtA[i] = 0x12 + } + if len(m.GenesisChecksum) > 0 { + i -= len(m.GenesisChecksum) + copy(dAtA[i:], m.GenesisChecksum) + i = encodeVarintGenesisInfo(dAtA, i, uint64(len(m.GenesisChecksum))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisAccounts) 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 *GenesisAccounts) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Accounts) > 0 { + for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesisInfo(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GenesisAccount) 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 *GenesisAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisAccount) 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 = encodeVarintGenesisInfo(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesisInfo(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesisInfo(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesisInfo(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GenesisChecksum) + if l > 0 { + n += 1 + l + sovGenesisInfo(uint64(l)) + } + l = len(m.Bech32Prefix) + if l > 0 { + n += 1 + l + sovGenesisInfo(uint64(l)) + } + l = m.NativeDenom.Size() + n += 1 + l + sovGenesisInfo(uint64(l)) + l = m.InitialSupply.Size() + n += 1 + l + sovGenesisInfo(uint64(l)) + if m.Sealed { + n += 2 + } + if m.GenesisAccounts != nil { + l = m.GenesisAccounts.Size() + n += 1 + l + sovGenesisInfo(uint64(l)) + } + return n +} + +func (m *GenesisAccounts) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Accounts) > 0 { + for _, e := range m.Accounts { + l = e.Size() + n += 1 + l + sovGenesisInfo(uint64(l)) + } + } + return n +} + +func (m *GenesisAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Amount.Size() + n += 1 + l + sovGenesisInfo(uint64(l)) + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesisInfo(uint64(l)) + } + return n +} + +func sovGenesisInfo(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesisInfo(x uint64) (n int) { + return sovGenesisInfo(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisInfo) 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 ErrIntOverflowGenesisInfo + } + 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: GenesisInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisChecksum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + 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 ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GenesisChecksum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + 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 ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NativeDenom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NativeDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + 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 ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InitialSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sealed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sealed = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisAccounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GenesisAccounts == nil { + m.GenesisAccounts = &GenesisAccounts{} + } + if err := m.GenesisAccounts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesisInfo(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesisInfo + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisAccounts) 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 ErrIntOverflowGenesisInfo + } + 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: GenesisAccounts: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisAccounts: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Accounts = append(m.Accounts, GenesisAccount{}) + if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesisInfo(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesisInfo + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisAccount) 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 ErrIntOverflowGenesisInfo + } + 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: GenesisAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesisInfo + } + 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 ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 ErrIntOverflowGenesisInfo + } + 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 ErrInvalidLengthGenesisInfo + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesisInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesisInfo(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesisInfo + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesisInfo(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, ErrIntOverflowGenesisInfo + } + 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, ErrIntOverflowGenesisInfo + } + 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, ErrIntOverflowGenesisInfo + } + 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, ErrInvalidLengthGenesisInfo + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesisInfo + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesisInfo + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesisInfo = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesisInfo = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesisInfo = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/pb/dymensionxyz/dymension/rollapp/liveness.pb.go b/types/pb/dymensionxyz/dymension/rollapp/liveness.pb.go index a4579eb72..cdec2af64 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/liveness.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/liveness.pb.go @@ -30,8 +30,6 @@ type LivenessEvent struct { RollappId string `protobuf:"bytes,1,opt,name=rollapp_id,json=rollappId,proto3" json:"rollapp_id,omitempty"` // HubHeight when event will occur HubHeight int64 `protobuf:"varint,2,opt,name=hub_height,json=hubHeight,proto3" json:"hub_height,omitempty"` - // IsJail is true iff the event is to jail rather than slash - IsJail bool `protobuf:"varint,3,opt,name=is_jail,json=isJail,proto3" json:"is_jail,omitempty"` } func (m *LivenessEvent) Reset() { *m = LivenessEvent{} } @@ -81,13 +79,6 @@ func (m *LivenessEvent) GetHubHeight() int64 { return 0 } -func (m *LivenessEvent) GetIsJail() bool { - if m != nil { - return m.IsJail - } - return false -} - func init() { proto.RegisterType((*LivenessEvent)(nil), "dymensionxyz.dymension.rollapp.LivenessEvent") } @@ -97,25 +88,24 @@ func init() { } var fileDescriptor_320371ac4381dc1d = []byte{ - // 277 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xcd, 0x4a, 0xc4, 0x30, - 0x14, 0x85, 0x1b, 0x07, 0x46, 0x5b, 0x70, 0x53, 0x04, 0xcb, 0x80, 0xa1, 0x88, 0x8b, 0xae, 0x1a, - 0x86, 0xc1, 0x17, 0x10, 0x14, 0x15, 0x57, 0x5d, 0xba, 0xa9, 0x49, 0x9b, 0x69, 0xaf, 0xb4, 0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x2f, 0x3d, 0xb5, 0xb6, 0x3d, 0xb5, 0xde, 0x7a, 0x6a, 0xdd, - 0x5f, 0x65, 0x60, 0xf2, 0x5a, 0x84, 0x89, 0x2e, 0x7f, 0x75, 0x04, 0x65, 0xd8, 0x58, 0xa3, 0x12, - 0x7f, 0x2c, 0x40, 0xcc, 0x87, 0x42, 0xab, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x49, 0x75, 0xbc, - 0x39, 0x9a, 0x01, 0x00, 0x00, + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x2e, 0xa9, 0x2c, 0x48, + 0x2d, 0xd6, 0x4f, 0xa9, 0xcc, 0x4d, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0xab, 0xa8, 0xac, 0x42, 0x70, + 0xf4, 0x8b, 0xf2, 0x73, 0x72, 0x12, 0x0b, 0x0a, 0xf4, 0x73, 0x32, 0xcb, 0x52, 0xf3, 0x52, 0x8b, + 0x8b, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xe4, 0x90, 0x95, 0xeb, 0xc1, 0x39, 0x7a, 0x50, + 0xe5, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa5, 0xfa, 0x20, 0x16, 0x44, 0x97, 0x94, 0x29, + 0x51, 0x56, 0x15, 0x97, 0x24, 0x96, 0xa4, 0xc6, 0x67, 0xe6, 0xa5, 0xc1, 0xb4, 0xa9, 0x40, 0xb4, + 0x25, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0xea, 0x97, 0x19, 0x26, 0xa5, + 0x96, 0x24, 0x1a, 0xea, 0x27, 0xe7, 0x67, 0xe6, 0x41, 0x54, 0x29, 0x05, 0x73, 0xf1, 0xfa, 0x40, + 0x1d, 0xe9, 0x5a, 0x96, 0x9a, 0x57, 0x22, 0x24, 0xcb, 0xc5, 0x05, 0x35, 0x32, 0x3e, 0x33, 0x45, + 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x13, 0x2a, 0xe2, 0x99, 0x02, 0x92, 0xce, 0x28, 0x4d, + 0x8a, 0xcf, 0x48, 0xcd, 0x4c, 0xcf, 0x28, 0x91, 0x60, 0x52, 0x60, 0xd4, 0x60, 0x0e, 0xe2, 0xcc, + 0x28, 0x4d, 0xf2, 0x00, 0x0b, 0x78, 0xb1, 0x70, 0x30, 0x0b, 0xb0, 0x38, 0x25, 0x9c, 0x78, 0x24, + 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, + 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5b, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, + 0x72, 0x7e, 0x2e, 0x86, 0x87, 0x32, 0xf3, 0x4a, 0xf4, 0x21, 0x6e, 0x2e, 0x48, 0x22, 0xe0, 0xdb, + 0x24, 0x36, 0xb0, 0xeb, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x94, 0x13, 0xa0, 0x16, 0x87, + 0x01, 0x00, 0x00, } func (m *LivenessEvent) Marshal() (dAtA []byte, err error) { @@ -138,16 +128,6 @@ func (m *LivenessEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.IsJail { - i-- - if m.IsJail { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } if m.HubHeight != 0 { i = encodeVarintLiveness(dAtA, i, uint64(m.HubHeight)) i-- @@ -187,9 +167,6 @@ func (m *LivenessEvent) Size() (n int) { if m.HubHeight != 0 { n += 1 + sovLiveness(uint64(m.HubHeight)) } - if m.IsJail { - n += 2 - } return n } @@ -279,26 +256,6 @@ func (m *LivenessEvent) Unmarshal(dAtA []byte) error { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsJail", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowLiveness - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsJail = bool(v != 0) default: iNdEx = preIndex skippy, err := skipLiveness(dAtA[iNdEx:]) diff --git a/types/pb/dymensionxyz/dymension/rollapp/params.pb.go b/types/pb/dymensionxyz/dymension/rollapp/params.pb.go index 4a5deddbd..90b93ea37 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/params.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/params.pb.go @@ -34,12 +34,8 @@ type Params struct { LivenessSlashBlocks uint64 `protobuf:"varint,4,opt,name=liveness_slash_blocks,json=livenessSlashBlocks,proto3" json:"liveness_slash_blocks,omitempty" yaml:"liveness_slash_blocks"` // The min gap (num hub blocks) between a sequence of slashes if the sequencer continues to be down LivenessSlashInterval uint64 `protobuf:"varint,5,opt,name=liveness_slash_interval,json=livenessSlashInterval,proto3" json:"liveness_slash_interval,omitempty" yaml:"liveness_slash_interval"` - // The time (num hub blocks) a sequencer can be down after which he will be jailed rather than slashed - LivenessJailBlocks uint64 `protobuf:"varint,6,opt,name=liveness_jail_blocks,json=livenessJailBlocks,proto3" json:"liveness_jail_blocks,omitempty" yaml:"liveness_jail_blocks"` // app_registration_fee is the fee for registering an App AppRegistrationFee types.Coin `protobuf:"bytes,7,opt,name=app_registration_fee,json=appRegistrationFee,proto3" json:"app_registration_fee" yaml:"app_registration_fee"` - // state_info_deletion_epoch_identifier is used to control the interval at which the state info records will be deleted. - StateInfoDeletionEpochIdentifier string `protobuf:"bytes,8,opt,name=state_info_deletion_epoch_identifier,json=stateInfoDeletionEpochIdentifier,proto3" json:"state_info_deletion_epoch_identifier,omitempty" yaml:"state_info_deletion_epoch_identifier"` } func (m *Params) Reset() { *m = Params{} } @@ -95,13 +91,6 @@ func (m *Params) GetLivenessSlashInterval() uint64 { return 0 } -func (m *Params) GetLivenessJailBlocks() uint64 { - if m != nil { - return m.LivenessJailBlocks - } - return 0 -} - func (m *Params) GetAppRegistrationFee() types.Coin { if m != nil { return m.AppRegistrationFee @@ -109,13 +98,6 @@ func (m *Params) GetAppRegistrationFee() types.Coin { return types.Coin{} } -func (m *Params) GetStateInfoDeletionEpochIdentifier() string { - if m != nil { - return m.StateInfoDeletionEpochIdentifier - } - return "" -} - func init() { proto.RegisterType((*Params)(nil), "dymensionxyz.dymension.rollapp.Params") } @@ -125,38 +107,33 @@ func init() { } var fileDescriptor_1d6d29d965f18d4f = []byte{ - // 489 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, - 0x18, 0xc7, 0x1b, 0x16, 0x46, 0x09, 0x97, 0x29, 0xb4, 0x22, 0x0c, 0x94, 0x44, 0xd9, 0x0e, 0x95, - 0x90, 0x12, 0x15, 0x6e, 0x3b, 0x06, 0x98, 0xd4, 0x9e, 0x46, 0xe0, 0x34, 0x21, 0x05, 0x27, 0xf9, - 0xda, 0x1a, 0x1c, 0xdb, 0x8a, 0xbd, 0x8a, 0x72, 0xe1, 0x15, 0x38, 0x72, 0xe4, 0x71, 0x76, 0xdc, - 0x91, 0x53, 0x84, 0xda, 0x17, 0x40, 0x79, 0x02, 0x54, 0x27, 0xe9, 0xca, 0x28, 0x82, 0x9b, 0xfd, - 0xf7, 0xef, 0xfb, 0x7d, 0x96, 0x3e, 0xdb, 0x18, 0xca, 0x05, 0x07, 0x11, 0x64, 0x8b, 0x1c, 0xa8, - 0xc0, 0x8c, 0x7e, 0x5c, 0x7c, 0xba, 0xde, 0x04, 0x05, 0x23, 0x04, 0x71, 0x1e, 0x70, 0x54, 0xa0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0x00, 0xff, - 0xff, 0x90, 0x19, 0x03, 0x5c, 0x6c, 0x03, 0x00, 0x00, + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x31, 0xef, 0xd2, 0x40, + 0x18, 0xc6, 0x5b, 0xa9, 0xfc, 0x49, 0x5d, 0x48, 0x85, 0x58, 0xd1, 0x5c, 0x49, 0x71, 0x60, 0xba, + 0x0b, 0xba, 0x31, 0xd6, 0x84, 0x04, 0x26, 0x52, 0x9d, 0x88, 0x49, 0xbd, 0x96, 0xb3, 0x5c, 0x6c, + 0xef, 0x2e, 0xbd, 0x83, 0x58, 0x3f, 0x85, 0xa3, 0xa3, 0xf1, 0xd3, 0x30, 0x32, 0x3a, 0x35, 0x06, + 0xbe, 0x41, 0x3f, 0x81, 0xa1, 0x2d, 0x8a, 0x8a, 0x71, 0xeb, 0x3d, 0xef, 0xaf, 0xbf, 0x37, 0x79, + 0xf3, 0x98, 0x13, 0x95, 0x0b, 0x22, 0xd1, 0x3a, 0x4f, 0x09, 0x93, 0x94, 0xb3, 0x0f, 0xf9, 0xc7, + 0x5f, 0x0f, 0x94, 0xf1, 0x24, 0xc1, 0x42, 0x20, 0x81, 0x33, 0x9c, 0x4a, 0x28, 0x32, 0xae, 0xb8, + 0x05, 0xae, 0x61, 0xf8, 0xf3, 0x01, 0x1b, 0x78, 0xd0, 0x8b, 0x79, 0xcc, 0x2b, 0x14, 0x9d, 0xbf, + 0xea, 0xbf, 0x06, 0xcf, 0xea, 0x45, 0x11, 0x97, 0x29, 0x97, 0x28, 0xc4, 0x92, 0xa0, 0xdd, 0x24, + 0x24, 0x0a, 0x4f, 0x50, 0xc4, 0x29, 0xab, 0x29, 0xf7, 0x6b, 0xcb, 0x6c, 0x2f, 0xab, 0x65, 0xd6, + 0x1b, 0xd3, 0x5e, 0x53, 0x29, 0xb6, 0x8a, 0x04, 0x82, 0x64, 0x94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+ 0x40, 0xff, 0x7e, 0x04, 0xfa, 0xa7, 0x13, 0xd0, 0x0e, 0x27, 0xa0, 0x7d, 0x3b, 0x01, 0x6d, 0x35, + 0x8b, 0xa9, 0xda, 0x6c, 0x43, 0x18, 0xf1, 0xf4, 0xaf, 0x4a, 0x51, 0xa6, 0x50, 0xdd, 0x01, 0x11, + 0xfe, 0xa7, 0x6f, 0x61, 0xbb, 0x6a, 0xc3, 0x8b, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x8a, + 0xca, 0x41, 0x9e, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -179,13 +156,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.StateInfoDeletionEpochIdentifier) > 0 { - i -= len(m.StateInfoDeletionEpochIdentifier) - copy(dAtA[i:], m.StateInfoDeletionEpochIdentifier) - i = encodeVarintParams(dAtA, i, uint64(len(m.StateInfoDeletionEpochIdentifier))) - i-- - dAtA[i] = 0x42 - } { size, err := m.AppRegistrationFee.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -196,11 +166,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x3a - if m.LivenessJailBlocks != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.LivenessJailBlocks)) - i-- - dAtA[i] = 0x30 - } if m.LivenessSlashInterval != 0 { i = encodeVarintParams(dAtA, i, uint64(m.LivenessSlashInterval)) i-- @@ -245,15 +210,8 @@ func (m *Params) Size() (n int) { if m.LivenessSlashInterval != 0 { n += 1 + sovParams(uint64(m.LivenessSlashInterval)) } - if m.LivenessJailBlocks != 0 { - n += 1 + sovParams(uint64(m.LivenessJailBlocks)) - } l = m.AppRegistrationFee.Size() n += 1 + l + sovParams(uint64(l)) - l = len(m.StateInfoDeletionEpochIdentifier) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } return n } @@ -349,25 +307,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LivenessJailBlocks", wireType) - } - m.LivenessJailBlocks = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LivenessJailBlocks |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AppRegistrationFee", wireType) @@ -401,38 +340,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateInfoDeletionEpochIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StateInfoDeletionEpochIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/types/pb/dymensionxyz/dymension/rollapp/query.pb.go b/types/pb/dymensionxyz/dymension/rollapp/query.pb.go index 72feab839..09304f16a 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/query.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/query.pb.go @@ -856,6 +856,110 @@ func (m *QueryObsoleteDRSVersionsResponse) GetDrsVersions() []uint32 { return nil } +type QueryValidateGenesisBridgeRequest struct { + RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"` + Data GenesisBridgeData `protobuf:"bytes,2,opt,name=data,proto3" json:"data"` +} + +func (m *QueryValidateGenesisBridgeRequest) Reset() { *m = QueryValidateGenesisBridgeRequest{} } +func (m *QueryValidateGenesisBridgeRequest) String() string { return proto.CompactTextString(m) } +func (*QueryValidateGenesisBridgeRequest) ProtoMessage() {} +func (*QueryValidateGenesisBridgeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_20818724c4f98326, []int{17} +} +func (m *QueryValidateGenesisBridgeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryValidateGenesisBridgeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryValidateGenesisBridgeRequest.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 *QueryValidateGenesisBridgeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidateGenesisBridgeRequest.Merge(m, src) +} +func (m *QueryValidateGenesisBridgeRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryValidateGenesisBridgeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidateGenesisBridgeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryValidateGenesisBridgeRequest proto.InternalMessageInfo + +func (m *QueryValidateGenesisBridgeRequest) GetRollappId() string { + if m != nil { + return m.RollappId + } + return "" +} + +func (m *QueryValidateGenesisBridgeRequest) GetData() GenesisBridgeData { + if m != nil { + return m.Data + } + return GenesisBridgeData{} +} + +type QueryValidateGenesisBridgeResponse struct { + Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` + Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` +} + +func (m *QueryValidateGenesisBridgeResponse) Reset() { *m = QueryValidateGenesisBridgeResponse{} } +func (m *QueryValidateGenesisBridgeResponse) String() string { return proto.CompactTextString(m) } +func (*QueryValidateGenesisBridgeResponse) ProtoMessage() {} +func (*QueryValidateGenesisBridgeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_20818724c4f98326, []int{18} +} +func (m *QueryValidateGenesisBridgeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryValidateGenesisBridgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryValidateGenesisBridgeResponse.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 *QueryValidateGenesisBridgeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidateGenesisBridgeResponse.Merge(m, src) +} +func (m *QueryValidateGenesisBridgeResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryValidateGenesisBridgeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidateGenesisBridgeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryValidateGenesisBridgeResponse proto.InternalMessageInfo + +func (m *QueryValidateGenesisBridgeResponse) GetValid() bool { + if m != nil { + return m.Valid + } + return false +} + +func (m *QueryValidateGenesisBridgeResponse) GetErr() string { + if m != nil { + return m.Err + } + return "" +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "dymensionxyz.dymension.rollapp.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "dymensionxyz.dymension.rollapp.QueryParamsResponse") @@ -874,6 +978,8 @@ func init() { proto.RegisterType((*QueryRegisteredDenomsResponse)(nil), "dymensionxyz.dymension.rollapp.QueryRegisteredDenomsResponse") proto.RegisterType((*QueryObsoleteDRSVersionsRequest)(nil), "dymensionxyz.dymension.rollapp.QueryObsoleteDRSVersionsRequest") proto.RegisterType((*QueryObsoleteDRSVersionsResponse)(nil), "dymensionxyz.dymension.rollapp.QueryObsoleteDRSVersionsResponse") + proto.RegisterType((*QueryValidateGenesisBridgeRequest)(nil), "dymensionxyz.dymension.rollapp.QueryValidateGenesisBridgeRequest") + proto.RegisterType((*QueryValidateGenesisBridgeResponse)(nil), "dymensionxyz.dymension.rollapp.QueryValidateGenesisBridgeResponse") } func init() { @@ -881,66 +987,73 @@ func init() { } var fileDescriptor_20818724c4f98326 = []byte{ - // 938 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0x38, 0xae, 0x13, 0xbf, 0x14, 0x11, 0x4d, 0xa3, 0x60, 0xdc, 0xe0, 0xba, 0x83, 0x04, - 0xe1, 0xb2, 0xc6, 0xae, 0xdc, 0x82, 0x68, 0x81, 0x44, 0x69, 0x43, 0x2a, 0x3e, 0xc2, 0x86, 0x0f, - 0x01, 0x42, 0x61, 0x5d, 0x4f, 0x9c, 0x45, 0xf6, 0xee, 0x76, 0x67, 0x52, 0xc5, 0x15, 0x08, 0x09, - 0x71, 0x83, 0x03, 0x9c, 0x90, 0xf8, 0x6f, 0xb8, 0xf5, 0xd8, 0x23, 0x27, 0x84, 0x92, 0x0b, 0xff, - 0x01, 0x57, 0xe4, 0x99, 0xb7, 0xeb, 0xf5, 0xfa, 0x6b, 0x6c, 0x38, 0xd9, 0xf3, 0x34, 0xbf, 0xdf, - 0xfb, 0x98, 0xf7, 0x7e, 0x6f, 0xe1, 0x55, 0xd9, 0x0b, 0xb8, 0xa8, 0xb6, 0x7a, 0x5d, 0xee, 0x09, - 0xd7, 0xf7, 0xce, 0x7a, 0x8f, 0x07, 0x87, 0x6a, 0xe8, 0x77, 0x3a, 0x4e, 0x10, 0x54, 0x1f, 0x9e, - 0xf2, 0xb0, 0x67, 0x05, 0xa1, 0x2f, 0x7d, 0x5a, 0x4e, 0xde, 0xb5, 0xe2, 0x83, 0x85, 0x77, 0x4b, - 0xeb, 0x6d, 0xbf, 0xed, 0xab, 0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15, 0x8a, 0xe8, 0x6a, 0xfd, 0xef, - 0x02, 0x5c, 0x52, 0x3c, 0x54, 0x40, 0x5e, 0xaf, 0x12, 0x5a, 0x37, 0x6a, 0xbf, 0xa1, 0x6d, 0x56, - 0xba, 0x31, 0x17, 0x46, 0xc7, 0xc7, 0x32, 0xf4, 0x1b, 0x58, 0xc6, 0x1e, 0xa6, 0x37, 0xe7, 0x6e, - 0x7a, 0xed, 0x79, 0xd1, 0x61, 0x61, 0x19, 0xfa, 0x13, 0x81, 0x67, 0x53, 0x9b, 0x8c, 0xbe, 0x39, - 0x27, 0x5d, 0x6a, 0x05, 0xfe, 0x97, 0x70, 0xbe, 0x03, 0x40, 0xe3, 0x76, 0xa7, 0x63, 0x58, 0x8f, - 0x11, 0x39, 0x33, 0x0c, 0x60, 0x54, 0x86, 0x58, 0x86, 0xfe, 0x48, 0xe0, 0x72, 0x72, 0x4f, 0xd2, - 0x37, 0x4c, 0x93, 0x19, 0xb3, 0xb8, 0x4b, 0xb7, 0x17, 0x03, 0xc7, 0xd1, 0xfc, 0x4a, 0x60, 0x2d, - 0xbd, 0x1e, 0xe9, 0x5b, 0xf3, 0x91, 0x8e, 0xec, 0xed, 0xd2, 0xdb, 0x8b, 0x13, 0xc4, 0x91, 0x7d, - 0x4f, 0xa0, 0x10, 0x8b, 0x06, 0x7d, 0xcd, 0x94, 0x31, 0xad, 0x99, 0xa5, 0xd7, 0x17, 0x40, 0xc6, - 0x41, 0xfc, 0x42, 0x60, 0x2d, 0x2d, 0x2c, 0xd4, 0xac, 0xe6, 0x13, 0xd4, 0xac, 0x74, 0x67, 0x41, - 0x74, 0x1c, 0xd3, 0x6f, 0x04, 0xae, 0x8c, 0x11, 0x24, 0xc3, 0x57, 0x9b, 0xac, 0x76, 0x86, 0xaf, - 0x36, 0x45, 0x0b, 0x59, 0x66, 0xe7, 0xab, 0x27, 0xe7, 0x65, 0xf2, 0xf4, 0xbc, 0x4c, 0xfe, 0x3a, - 0x2f, 0x93, 0x9f, 0x2f, 0xca, 0x99, 0xa7, 0x17, 0xe5, 0xcc, 0x1f, 0x17, 0xe5, 0xcc, 0xe7, 0xf7, - 0xda, 0xae, 0x3c, 0x39, 0x6d, 0x5a, 0x0f, 0xfc, 0xee, 0xc8, 0x57, 0xbd, 0xeb, 0xc9, 0xaa, 0xfe, - 0xde, 0x0f, 0x9a, 0x33, 0x3e, 0xf9, 0x9b, 0x79, 0xf5, 0xbd, 0x7f, 0xe3, 0xdf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xf2, 0xe2, 0x5c, 0x94, 0x59, 0x0d, 0x00, 0x00, + // 1048 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0xda, 0xae, 0x63, 0xbf, 0x14, 0x61, 0x4d, 0x43, 0x30, 0x6e, 0x70, 0x9d, 0x45, 0x82, + 0x70, 0x59, 0x63, 0x57, 0x6e, 0x41, 0xb4, 0x05, 0x5b, 0x69, 0x43, 0x4a, 0x81, 0xb0, 0x81, 0x22, + 0x40, 0xc8, 0xac, 0xbb, 0x13, 0x67, 0x91, 0xbd, 0xbb, 0xdd, 0x99, 0x44, 0x71, 0x05, 0x42, 0x42, + 0xdc, 0x8a, 0x10, 0x9c, 0x90, 0x38, 0xf1, 0xaf, 0x70, 0xeb, 0xb1, 0x47, 0x4e, 0x08, 0x25, 0x7f, + 0x04, 0x57, 0xb4, 0x33, 0x6f, 0xd7, 0xbf, 0xed, 0x89, 0xcb, 0x29, 0x99, 0xd1, 0x7c, 0xdf, 0xfb, + 0xe6, 0xcd, 0x7b, 0xdf, 0xf3, 0xc2, 0x1b, 0xbc, 0xef, 0x53, 0x56, 0xb1, 0xfb, 0x3d, 0xea, 0x32, + 0xc7, 0x73, 0x4f, 0xfa, 0x8f, 0x06, 0x8b, 0x4a, 0xe0, 0x75, 0xbb, 0x96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4, 0x17, 0xd7, 0xd5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xa2, 0x06, 0xf5, 0xc1, 0x1b, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -973,6 +1086,8 @@ type QueryClient interface { RegisteredDenoms(ctx context.Context, in *QueryRegisteredDenomsRequest, opts ...grpc.CallOption) (*QueryRegisteredDenomsResponse, error) // Queries a list of obsolete DRS versions. ObsoleteDRSVersions(ctx context.Context, in *QueryObsoleteDRSVersionsRequest, opts ...grpc.CallOption) (*QueryObsoleteDRSVersionsResponse, error) + // Validates provided genesis bridge data against the hub. + ValidateGenesisBridge(ctx context.Context, in *QueryValidateGenesisBridgeRequest, opts ...grpc.CallOption) (*QueryValidateGenesisBridgeResponse, error) } type queryClient struct { @@ -1064,6 +1179,15 @@ func (c *queryClient) ObsoleteDRSVersions(ctx context.Context, in *QueryObsolete return out, nil } +func (c *queryClient) ValidateGenesisBridge(ctx context.Context, in *QueryValidateGenesisBridgeRequest, opts ...grpc.CallOption) (*QueryValidateGenesisBridgeResponse, error) { + out := new(QueryValidateGenesisBridgeResponse) + err := c.cc.Invoke(ctx, "/dymensionxyz.dymension.rollapp.Query/ValidateGenesisBridge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Parameters queries the parameters of the module. @@ -1084,6 +1208,8 @@ type QueryServer interface { RegisteredDenoms(context.Context, *QueryRegisteredDenomsRequest) (*QueryRegisteredDenomsResponse, error) // Queries a list of obsolete DRS versions. ObsoleteDRSVersions(context.Context, *QueryObsoleteDRSVersionsRequest) (*QueryObsoleteDRSVersionsResponse, error) + // Validates provided genesis bridge data against the hub. + ValidateGenesisBridge(context.Context, *QueryValidateGenesisBridgeRequest) (*QueryValidateGenesisBridgeResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1117,6 +1243,9 @@ func (*UnimplementedQueryServer) RegisteredDenoms(ctx context.Context, req *Quer func (*UnimplementedQueryServer) ObsoleteDRSVersions(ctx context.Context, req *QueryObsoleteDRSVersionsRequest) (*QueryObsoleteDRSVersionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ObsoleteDRSVersions not implemented") } +func (*UnimplementedQueryServer) ValidateGenesisBridge(ctx context.Context, req *QueryValidateGenesisBridgeRequest) (*QueryValidateGenesisBridgeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateGenesisBridge not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1284,6 +1413,24 @@ func _Query_ObsoleteDRSVersions_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _Query_ValidateGenesisBridge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryValidateGenesisBridgeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ValidateGenesisBridge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dymensionxyz.dymension.rollapp.Query/ValidateGenesisBridge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ValidateGenesisBridge(ctx, req.(*QueryValidateGenesisBridgeRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "dymensionxyz.dymension.rollapp.Query", HandlerType: (*QueryServer)(nil), @@ -1324,6 +1471,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ObsoleteDRSVersions", Handler: _Query_ObsoleteDRSVersions_Handler, }, + { + MethodName: "ValidateGenesisBridge", + Handler: _Query_ValidateGenesisBridge_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "types/dymensionxyz/dymension/rollapp/query.proto", @@ -1964,6 +2115,86 @@ func (m *QueryObsoleteDRSVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } +func (m *QueryValidateGenesisBridgeRequest) 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 *QueryValidateGenesisBridgeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidateGenesisBridgeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.RollappId) > 0 { + i -= len(m.RollappId) + copy(dAtA[i:], m.RollappId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RollappId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryValidateGenesisBridgeResponse) 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 *QueryValidateGenesisBridgeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryValidateGenesisBridgeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Err) > 0 { + i -= len(m.Err) + copy(dAtA[i:], m.Err) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Err))) + i-- + dAtA[i] = 0x12 + } + if m.Valid { + i-- + if m.Valid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -2221,6 +2452,37 @@ func (m *QueryObsoleteDRSVersionsResponse) Size() (n int) { return n } +func (m *QueryValidateGenesisBridgeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RollappId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = m.Data.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryValidateGenesisBridgeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Valid { + n += 2 + } + l = len(m.Err) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3846,6 +4108,223 @@ func (m *QueryObsoleteDRSVersionsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryValidateGenesisBridgeRequest) 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 ErrIntOverflowQuery + } + 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: QueryValidateGenesisBridgeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidateGenesisBridgeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RollappId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RollappId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryValidateGenesisBridgeResponse) 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 ErrIntOverflowQuery + } + 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: QueryValidateGenesisBridgeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryValidateGenesisBridgeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Valid = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Err", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Err = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/types/pb/dymensionxyz/dymension/rollapp/rollapp.pb.go b/types/pb/dymensionxyz/dymension/rollapp/rollapp.pb.go index b03450572..2c507a5fd 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/rollapp.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/rollapp.pb.go @@ -5,7 +5,6 @@ package rollapp import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" @@ -124,8 +123,6 @@ type Rollapp struct { GenesisState RollappGenesisState `protobuf:"bytes,7,opt,name=genesis_state,json=genesisState,proto3" json:"genesis_state"` // channel_id will be set to the canonical IBC channel of the rollapp. ChannelId string `protobuf:"bytes,8,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - // frozen is a boolean that indicates if the rollapp is frozen. - Frozen bool `protobuf:"varint,9,opt,name=frozen,proto3" json:"frozen,omitempty"` // metadata is the rollapp metadata Metadata *RollappMetadata `protobuf:"bytes,11,opt,name=metadata,proto3" json:"metadata,omitempty"` // genesis_info keeps immutable rollapp fields @@ -147,9 +144,9 @@ type Rollapp struct { // LivenessEventHeight is the height on the HUB of an upcoming liveness event (slash or // jail against the rollapp). 0 means not set LivenessEventHeight int64 `protobuf:"varint,17,opt,name=liveness_event_height,json=livenessEventHeight,proto3" json:"liveness_event_height,omitempty"` - // The LastStateUpdateHeight HUB height when the last state update was - // received - LastStateUpdateHeight int64 `protobuf:"varint,18,opt,name=last_state_update_height,json=lastStateUpdateHeight,proto3" json:"last_state_update_height,omitempty"` + // The height on the HUB that we start counting liveness from. If the rollapp is not active + // for a long time after this height, a liveness event will happen. + LivenessCountdownStartHeight int64 `protobuf:"varint,18,opt,name=liveness_countdown_start_height,json=livenessCountdownStartHeight,proto3" json:"liveness_countdown_start_height,omitempty"` // Revisions is a list of all the rollapp revisions. Revisions []Revision `protobuf:"bytes,19,rep,name=revisions,proto3" json:"revisions"` } @@ -215,13 +212,6 @@ func (m *Rollapp) GetChannelId() string { return "" } -func (m *Rollapp) GetFrozen() bool { - if m != nil { - return m.Frozen - } - return false -} - func (m *Rollapp) GetMetadata() *RollappMetadata { if m != nil { return m.Metadata @@ -271,9 +261,9 @@ func (m *Rollapp) GetLivenessEventHeight() int64 { return 0 } -func (m *Rollapp) GetLastStateUpdateHeight() int64 { +func (m *Rollapp) GetLivenessCountdownStartHeight() int64 { if m != nil { - return m.LastStateUpdateHeight + return m.LivenessCountdownStartHeight } return 0 } @@ -340,180 +330,6 @@ func (m *Revision) GetStartHeight() uint64 { return 0 } -type GenesisInfo struct { - // checksum used to verify integrity of the genesis file - GenesisChecksum string `protobuf:"bytes,1,opt,name=genesis_checksum,json=genesisChecksum,proto3" json:"genesis_checksum,omitempty"` - // unique bech32 prefix - Bech32Prefix string `protobuf:"bytes,2,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"` - // native_denom is the base denom for the native token - NativeDenom DenomMetadata `protobuf:"bytes,3,opt,name=native_denom,json=nativeDenom,proto3" json:"native_denom"` - // initial_supply is the initial supply of the native token - InitialSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=initial_supply,json=initialSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_supply"` - // sealed indicates if the fields in this object are no longer updatable - Sealed bool `protobuf:"varint,5,opt,name=sealed,proto3" json:"sealed,omitempty"` - GenesisAccounts *GenesisAccounts `protobuf:"bytes,6,opt,name=genesis_accounts,json=genesisAccounts,proto3" json:"genesis_accounts,omitempty"` -} - -func (m *GenesisInfo) Reset() { *m = GenesisInfo{} } -func (m *GenesisInfo) String() string { return proto.CompactTextString(m) } -func (*GenesisInfo) ProtoMessage() {} -func (*GenesisInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_3b0028f80c0f8489, []int{3} -} -func (m *GenesisInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisInfo.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 *GenesisInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisInfo.Merge(m, src) -} -func (m *GenesisInfo) XXX_Size() int { - return m.Size() -} -func (m *GenesisInfo) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisInfo proto.InternalMessageInfo - -func (m *GenesisInfo) GetGenesisChecksum() string { - if m != nil { - return m.GenesisChecksum - } - return "" -} - -func (m *GenesisInfo) GetBech32Prefix() string { - if m != nil { - return m.Bech32Prefix - } - return "" -} - -func (m *GenesisInfo) GetNativeDenom() DenomMetadata { - if m != nil { - return m.NativeDenom - } - return DenomMetadata{} -} - -func (m *GenesisInfo) GetSealed() bool { - if m != nil { - return m.Sealed - } - return false -} - -func (m *GenesisInfo) GetGenesisAccounts() *GenesisAccounts { - if m != nil { - return m.GenesisAccounts - } - return nil -} - -type GenesisAccounts struct { - Accounts []GenesisAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"` -} - -func (m *GenesisAccounts) Reset() { *m = GenesisAccounts{} } -func (m *GenesisAccounts) String() string { return proto.CompactTextString(m) } -func (*GenesisAccounts) ProtoMessage() {} -func (*GenesisAccounts) Descriptor() ([]byte, []int) { - return fileDescriptor_3b0028f80c0f8489, []int{4} -} -func (m *GenesisAccounts) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisAccounts.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 *GenesisAccounts) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisAccounts.Merge(m, src) -} -func (m *GenesisAccounts) XXX_Size() int { - return m.Size() -} -func (m *GenesisAccounts) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisAccounts.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisAccounts proto.InternalMessageInfo - -func (m *GenesisAccounts) GetAccounts() []GenesisAccount { - if m != nil { - return m.Accounts - } - return nil -} - -// GenesisAccount is a struct for the genesis account for the rollapp -type GenesisAccount struct { - // amount of coins to be sent to the genesis address - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - // address is a bech-32 address of the genesis account - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *GenesisAccount) Reset() { *m = GenesisAccount{} } -func (m *GenesisAccount) String() string { return proto.CompactTextString(m) } -func (*GenesisAccount) ProtoMessage() {} -func (*GenesisAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_3b0028f80c0f8489, []int{5} -} -func (m *GenesisAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisAccount.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 *GenesisAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisAccount.Merge(m, src) -} -func (m *GenesisAccount) XXX_Size() int { - return m.Size() -} -func (m *GenesisAccount) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisAccount proto.InternalMessageInfo - -func (m *GenesisAccount) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - // Rollapp summary is a compact representation of Rollapp type RollappSummary struct { // The unique identifier of the rollapp chain. @@ -531,7 +347,7 @@ func (m *RollappSummary) Reset() { *m = RollappSummary{} } func (m *RollappSummary) String() string { return proto.CompactTextString(m) } func (*RollappSummary) ProtoMessage() {} func (*RollappSummary) Descriptor() ([]byte, []int) { - return fileDescriptor_3b0028f80c0f8489, []int{6} + return fileDescriptor_3b0028f80c0f8489, []int{3} } func (m *RollappSummary) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -600,9 +416,6 @@ func init() { proto.RegisterType((*RollappGenesisState)(nil), "dymensionxyz.dymension.rollapp.RollappGenesisState") proto.RegisterType((*Rollapp)(nil), "dymensionxyz.dymension.rollapp.Rollapp") proto.RegisterType((*Revision)(nil), "dymensionxyz.dymension.rollapp.Revision") - proto.RegisterType((*GenesisInfo)(nil), "dymensionxyz.dymension.rollapp.GenesisInfo") - proto.RegisterType((*GenesisAccounts)(nil), "dymensionxyz.dymension.rollapp.GenesisAccounts") - proto.RegisterType((*GenesisAccount)(nil), "dymensionxyz.dymension.rollapp.GenesisAccount") proto.RegisterType((*RollappSummary)(nil), "dymensionxyz.dymension.rollapp.RollappSummary") } @@ -611,70 +424,57 @@ func init() { } var fileDescriptor_3b0028f80c0f8489 = []byte{ - // 995 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x5d, 0x6f, 0xdb, 0x54, - 0x18, 0xae, 0x9b, 0x34, 0x49, 0xdf, 0xa4, 0xad, 0x77, 0xda, 0x22, 0x53, 0xd1, 0x34, 0x04, 0x09, - 0x05, 0x8d, 0xd9, 0x22, 0x05, 0x71, 0xbd, 0x42, 0xbb, 0xb6, 0xac, 0xd2, 0xe4, 0x7e, 0x20, 0xed, - 0x02, 0xef, 0xc4, 0x3e, 0x71, 0xac, 0xd9, 0xc7, 0xc6, 0xe7, 0x38, 0x2c, 0xfd, 0x01, 0x5c, 0xef, - 0x67, 0x8d, 0xbb, 0x89, 0x2b, 0xc4, 0xc5, 0x40, 0xed, 0x1f, 0x41, 0xe7, 0xc3, 0x69, 0xd6, 0x0d, - 0x9a, 0x71, 0x75, 0xfc, 0x7e, 0x3d, 0xe7, 0xfd, 0x78, 0xde, 0x93, 0x40, 0x9f, 0x4f, 0x32, 0xc2, - 0x9c, 0x60, 0x92, 0x10, 0xca, 0xa2, 0x94, 0xbe, 0x98, 0x5c, 0xde, 0x08, 0x4e, 0x9e, 0xc6, 0x31, - 0xce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0x94, 0x62, 0xf7, 0xf7, - 0x45, 0x58, 0xd5, 0xcf, 0xc3, 0x69, 0x91, 0x24, 0x38, 0x9f, 0xa0, 0x4f, 0xe0, 0xe6, 0xa5, 0x7f, - 0xf7, 0xe9, 0x7f, 0x0a, 0x66, 0x8c, 0x39, 0xd1, 0xcb, 0x77, 0x44, 0x03, 0xa2, 0xa8, 0x35, 0x47, - 0xf9, 0x3a, 0x62, 0x98, 0xca, 0x28, 0xf7, 0x1d, 0x1c, 0x14, 0xc3, 0xc7, 0x4a, 0x77, 0x10, 0x51, - 0x1c, 0x47, 0x97, 0x24, 0x98, 0xb9, 0xa4, 0xf2, 0xbf, 0x2e, 0xf9, 0x77, 0x40, 0xd4, 0x85, 0x96, - 0x32, 0xaa, 0x65, 0x93, 0x14, 0xad, 0xba, 0x6f, 0xe9, 0xd0, 0xd7, 0xb0, 0x79, 0x0b, 0x40, 0x3b, - 0x2f, 0x49, 0xe7, 0xf7, 0x1b, 0xf7, 0x9e, 0xbd, 0xba, 0x6a, 0x1b, 0xaf, 0xaf, 0xda, 0xc6, 0xdf, - 0x57, 0x6d, 0xe3, 0xe5, 0x75, 0x7b, 0xe1, 0xf5, 0x75, 0x7b, 0xe1, 0x8f, 0xeb, 0xf6, 0xc2, 0xd3, - 0x83, 0x99, 0xc1, 0xdd, 0xfe, 0x9d, 0x8f, 0x28, 0x57, 0xa3, 0x73, 0xb2, 0xc1, 0x1d, 0x7f, 0x02, - 0x06, 0x35, 0xf9, 0xfa, 0xee, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x39, 0xa3, 0x7e, 0xf5, 0x14, - 0x09, 0x00, 0x00, + // 787 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x16, 0x2d, 0x46, 0xa2, 0x86, 0xb2, 0xcd, 0xac, 0x9d, 0x82, 0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cd, 0x45, 0x1a, 0x14, 0xf7, 0xc2, 0x3e, 0xe8, 0x69, 0xce, + 0xc1, 0xc0, 0xdd, 0xb1, 0x1d, 0xf7, 0xc5, 0xf5, 0xcd, 0x32, 0xc3, 0x7e, 0x63, 0x91, 0x16, 0x5f, + 0xd4, 0x01, 0x23, 0x09, 0xe7, 0x74, 0x32, 0xc3, 0x91, 0x7d, 0x28, 0xaf, 0xc0, 0xca, 0x46, 0x17, + 0x70, 0x98, 0xe5, 0x38, 0x28, 0xed, 0xa0, 0x58, 0x10, 0xdb, 0x92, 0xad, 0x76, 0xdc, 0x72, 0x7b, + 0xdc, 0x6a, 0x7b, 0xdc, 0x9b, 0x6a, 0x7b, 0xce, 0xf5, 0xb7, 0x7f, 0x9d, 0x6a, 0xfe, 0x7e, 0x96, + 0xe3, 0xe7, 0x92, 0x57, 0x20, 0x68, 0x00, 0x8f, 0x12, 0xb2, 0x28, 0x9a, 0xe5, 0x01, 0x5e, 0x60, + 0x2a, 0x82, 0x19, 0x26, 0xf1, 0x4c, 0xd8, 0x0f, 0x7b, 0x9a, 0x53, 0xf7, 0x8f, 0x2a, 0x70, 0x58, + 0x60, 0x17, 0x12, 0x42, 0x43, 0x38, 0x5d, 0x71, 0x26, 0x6c, 0x4e, 0x45, 0xc4, 0x5e, 0xd1, 0xe2, + 0xf2, 0xe4, 0x2b, 0x36, 0x92, 0xec, 0xc7, 0x55, 0xd8, 0xf7, 0x55, 0xd4, 0xa8, 0x08, 0x52, 0x32, + 0xcf, 0xa1, 0x95, 0xe3, 0x05, 0x29, 0x66, 0xc1, 0xed, 0xa3, 0x5e, 0xdd, 0x31, 0x07, 0xce, 0xd6, + 0x59, 0x29, 0x82, 0x3a, 0xa6, 0xb5, 0x40, 0xff, 0x4b, 0x68, 0x94, 0x03, 0x44, 0x87, 0x60, 0xfe, + 0x48, 0x79, 0x86, 0x27, 0x64, 0x4a, 0x70, 0x64, 0xd5, 0x50, 0x13, 0xea, 0xc3, 0x17, 0xd7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27, 0x2c, 0xbd, 0xf7, 0x0a, 0x13, 0x2a, 0xbc, 0xf2, 0x7d, 0xce, 0xc6, 0x5b, 0x9e, 0xe8, + 0x71, 0x43, 0xee, 0xcb, 0xd9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x45, 0xa4, 0x05, 0x76, 0xe7, + 0x06, 0x00, 0x00, } func (m *RollappGenesisState) Marshal() (dAtA []byte, err error) { @@ -746,8 +546,8 @@ func (m *Rollapp) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x9a } } - if m.LastStateUpdateHeight != 0 { - i = encodeVarintRollapp(dAtA, i, uint64(m.LastStateUpdateHeight)) + if m.LivenessCountdownStartHeight != 0 { + i = encodeVarintRollapp(dAtA, i, uint64(m.LivenessCountdownStartHeight)) i-- dAtA[i] = 0x1 i-- @@ -816,16 +616,6 @@ func (m *Rollapp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x5a } - if m.Frozen { - i-- - if m.Frozen { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) @@ -897,162 +687,6 @@ func (m *Revision) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GenesisInfo) 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 *GenesisInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.GenesisAccounts != nil { - { - size, err := m.GenesisAccounts.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRollapp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Sealed { - i-- - if m.Sealed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - { - size := m.InitialSupply.Size() - i -= size - if _, err := m.InitialSupply.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRollapp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.NativeDenom.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRollapp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Bech32Prefix) > 0 { - i -= len(m.Bech32Prefix) - copy(dAtA[i:], m.Bech32Prefix) - i = encodeVarintRollapp(dAtA, i, uint64(len(m.Bech32Prefix))) - i-- - dAtA[i] = 0x12 - } - if len(m.GenesisChecksum) > 0 { - i -= len(m.GenesisChecksum) - copy(dAtA[i:], m.GenesisChecksum) - i = encodeVarintRollapp(dAtA, i, uint64(len(m.GenesisChecksum))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GenesisAccounts) 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 *GenesisAccounts) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Accounts) > 0 { - for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRollapp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GenesisAccount) 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 *GenesisAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisAccount) 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 = encodeVarintRollapp(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRollapp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - func (m *RollappSummary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1160,9 +794,6 @@ func (m *Rollapp) Size() (n int) { if l > 0 { n += 1 + l + sovRollapp(uint64(l)) } - if m.Frozen { - n += 2 - } if m.Metadata != nil { l = m.Metadata.Size() n += 1 + l + sovRollapp(uint64(l)) @@ -1186,8 +817,8 @@ func (m *Rollapp) Size() (n int) { if m.LivenessEventHeight != 0 { n += 2 + sovRollapp(uint64(m.LivenessEventHeight)) } - if m.LastStateUpdateHeight != 0 { - n += 2 + sovRollapp(uint64(m.LastStateUpdateHeight)) + if m.LivenessCountdownStartHeight != 0 { + n += 2 + sovRollapp(uint64(m.LivenessCountdownStartHeight)) } if len(m.Revisions) > 0 { for _, e := range m.Revisions { @@ -1213,87 +844,29 @@ func (m *Revision) Size() (n int) { return n } -func (m *GenesisInfo) Size() (n int) { +func (m *RollappSummary) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.GenesisChecksum) + l = len(m.RollappId) if l > 0 { n += 1 + l + sovRollapp(uint64(l)) } - l = len(m.Bech32Prefix) - if l > 0 { + if m.LatestStateIndex != nil { + l = m.LatestStateIndex.Size() n += 1 + l + sovRollapp(uint64(l)) } - l = m.NativeDenom.Size() - n += 1 + l + sovRollapp(uint64(l)) - l = m.InitialSupply.Size() - n += 1 + l + sovRollapp(uint64(l)) - if m.Sealed { - n += 2 - } - if m.GenesisAccounts != nil { - l = m.GenesisAccounts.Size() + if m.LatestFinalizedStateIndex != nil { + l = m.LatestFinalizedStateIndex.Size() n += 1 + l + sovRollapp(uint64(l)) } - return n -} - -func (m *GenesisAccounts) Size() (n int) { - if m == nil { - return 0 + if m.LatestHeight != 0 { + n += 1 + sovRollapp(uint64(m.LatestHeight)) } - var l int - _ = l - if len(m.Accounts) > 0 { - for _, e := range m.Accounts { - l = e.Size() - n += 1 + l + sovRollapp(uint64(l)) - } - } - return n -} - -func (m *GenesisAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Amount.Size() - n += 1 + l + sovRollapp(uint64(l)) - l = len(m.Address) - if l > 0 { - n += 1 + l + sovRollapp(uint64(l)) - } - return n -} - -func (m *RollappSummary) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RollappId) - if l > 0 { - n += 1 + l + sovRollapp(uint64(l)) - } - if m.LatestStateIndex != nil { - l = m.LatestStateIndex.Size() - n += 1 + l + sovRollapp(uint64(l)) - } - if m.LatestFinalizedStateIndex != nil { - l = m.LatestFinalizedStateIndex.Size() - n += 1 + l + sovRollapp(uint64(l)) - } - if m.LatestHeight != 0 { - n += 1 + sovRollapp(uint64(m.LatestHeight)) - } - if m.LatestFinalizedHeight != 0 { - n += 1 + sovRollapp(uint64(m.LatestFinalizedHeight)) + if m.LatestFinalizedHeight != 0 { + n += 1 + sovRollapp(uint64(m.LatestFinalizedHeight)) } return n } @@ -1532,26 +1105,6 @@ func (m *Rollapp) Unmarshal(dAtA []byte) error { } m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Frozen", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Frozen = bool(v != 0) case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) @@ -1749,9 +1302,9 @@ func (m *Rollapp) Unmarshal(dAtA []byte) error { } case 18: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastStateUpdateHeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LivenessCountdownStartHeight", wireType) } - m.LastStateUpdateHeight = 0 + m.LivenessCountdownStartHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRollapp @@ -1761,7 +1314,7 @@ func (m *Rollapp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastStateUpdateHeight |= int64(b&0x7F) << shift + m.LivenessCountdownStartHeight |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1909,443 +1462,6 @@ func (m *Revision) Unmarshal(dAtA []byte) error { } return nil } -func (m *GenesisInfo) 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 ErrIntOverflowRollapp - } - 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: GenesisInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GenesisChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - 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 ErrInvalidLengthRollapp - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GenesisChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - 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 ErrInvalidLengthRollapp - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NativeDenom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRollapp - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.NativeDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitialSupply", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - 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 ErrInvalidLengthRollapp - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.InitialSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sealed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Sealed = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GenesisAccounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRollapp - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GenesisAccounts == nil { - m.GenesisAccounts = &GenesisAccounts{} - } - if err := m.GenesisAccounts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRollapp(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollapp - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisAccounts) 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 ErrIntOverflowRollapp - } - 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: GenesisAccounts: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisAccounts: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRollapp - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Accounts = append(m.Accounts, GenesisAccount{}) - if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRollapp(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollapp - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisAccount) 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 ErrIntOverflowRollapp - } - 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: GenesisAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRollapp - } - 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 ErrInvalidLengthRollapp - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - 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 ErrIntOverflowRollapp - } - 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 ErrInvalidLengthRollapp - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRollapp - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRollapp(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollapp - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *RollappSummary) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/types/pb/dymensionxyz/dymension/rollapp/state_info.pb.go b/types/pb/dymensionxyz/dymension/rollapp/state_info.pb.go index 44da77466..9134cc398 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/state_info.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/state_info.pb.go @@ -112,8 +112,8 @@ type StateInfo struct { BDs BlockDescriptors `protobuf:"bytes,9,opt,name=BDs,proto3" json:"BDs"` // created_at is the timestamp at which the StateInfo was created CreatedAt time.Time `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at" yaml:"created_at"` - // next sequencer is the bech32-encoded address of the next sequencer after the current sequencer - // if empty, it means there is no change in the sequencer + // NextProposer is the bech32-encoded address of the proposer that we expect to see in the next state info. + // Most of the time NextProposer is the current proposer. In case of rotation it is changed to the successor. NextProposer string `protobuf:"bytes,11,opt,name=nextProposer,proto3" json:"nextProposer,omitempty"` } @@ -287,11 +287,13 @@ func (m *StateInfoSummary) GetCreationHeight() uint64 { // BlockHeightToFinalizationQueue defines a map from block height to list of states to finalized type BlockHeightToFinalizationQueue struct { - // creationHeight is the block height that the state should be finalized + // CreationHeight is the block height that the state should be finalized CreationHeight uint64 `protobuf:"varint,1,opt,name=creationHeight,proto3" json:"creationHeight,omitempty"` - // finalizationQueue is a list of states that are waiting to be finalized + // FinalizationQueue is a list of states that are waiting to be finalized // when the block height becomes creationHeight FinalizationQueue []StateInfoIndex `protobuf:"bytes,2,rep,name=finalizationQueue,proto3" json:"finalizationQueue"` + // RollappID is the rollapp which the queue belongs to + RollappId string `protobuf:"bytes,3,opt,name=rollapp_id,json=rollappId,proto3" json:"rollapp_id,omitempty"` } func (m *BlockHeightToFinalizationQueue) Reset() { *m = BlockHeightToFinalizationQueue{} } @@ -341,6 +343,13 @@ func (m *BlockHeightToFinalizationQueue) GetFinalizationQueue() []StateInfoIndex return nil } +func (m *BlockHeightToFinalizationQueue) GetRollappId() string { + if m != nil { + return m.RollappId + } + return "" +} + func init() { proto.RegisterType((*StateInfoIndex)(nil), "dymensionxyz.dymension.rollapp.StateInfoIndex") proto.RegisterType((*StateInfo)(nil), "dymensionxyz.dymension.rollapp.StateInfo") @@ -353,43 +362,44 @@ func init() { } var fileDescriptor_deebb9ffbcdd017e = []byte{ - // 572 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0xcd, 0x34, 0x69, 0x5a, 0x4f, 0x50, 0xd4, 0x8e, 0x2a, 0x64, 0x45, 0xe0, 0x44, 0x96, 0x40, - 0x59, 0xd9, 0x55, 0x11, 0x1b, 0x10, 0x8b, 0x46, 0x51, 0xd5, 0xb0, 0x2a, 0x6e, 0x17, 0x08, 0x21, - 0x05, 0x3b, 0x99, 0x38, 0x23, 0xec, 0x19, 0x33, 0x33, 0x96, 0xe2, 0x7e, 0x45, 0x17, 0x7c, 0x06, - 0x1f, 0xd2, 0x65, 0x77, 0xb0, 0x2a, 0x28, 0xf9, 0x03, 0xbe, 0x00, 0x79, 0xec, 0xc6, 0xcd, 0x83, - 0x16, 0x55, 0x62, 0x97, 0x7b, 0x73, 0xcf, 0xf1, 0xb9, 0xe7, 0x1e, 0x0d, 0x7c, 0x29, 0x93, 0x08, - 0x0b, 0x7b, 0x98, 0x84, 0x98, 0x0a, 0xc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 0xe6, 0xf2, 0xba, 0x33, 0x9b, 0xdf, 0x00, 0x34, 0x94, 0xfb, 0x59, 0x7d, 0xc6, - 0x8e, 0x08, 0x75, 0x03, 0x72, 0xae, 0x66, 0xde, 0xc5, 0x38, 0xc6, 0x6b, 0xa8, 0xc0, 0xda, 0xc4, - 0x78, 0x70, 0x77, 0xb4, 0x0c, 0xd6, 0x37, 0x5a, 0xe5, 0x07, 0x5b, 0xb2, 0x4a, 0xd7, 0xf9, 0x74, - 0x39, 0x35, 0xc0, 0xd5, 0xd4, 0x00, 0xbf, 0xa6, 0x06, 0xb8, 0x98, 0x19, 0xa5, 0xab, 0x99, 0x51, - 0xfa, 0x31, 0x33, 0x4a, 0x1f, 0x8e, 0x7c, 0x22, 0xc7, 0xb1, 0x97, 0xda, 0xb1, 0xf2, 0x6c, 0x10, - 0x2a, 0xed, 0xec, 0x41, 0x89, 0xbc, 0x7b, 0x1e, 0x24, 0xaf, 0xaa, 0x22, 0xf5, 0xe2, 0x4f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x52, 0x1d, 0xf5, 0xb6, 0x4d, 0x05, 0x00, 0x00, + // 583 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x6a, 0xdb, 0x4c, + 0x14, 0xf5, 0xd8, 0x8e, 0x13, 0x8d, 0x3f, 0x4c, 0x32, 0x84, 0x0f, 0x61, 0x1a, 0xd9, 0x08, 0x5a, + 0xbc, 0x92, 0x42, 0x4a, 0x37, 0x2d, 0x5d, 0xc4, 0x98, 0x10, 0x77, 0x95, 0x2a, 0x59, 0x94, 0x52, + 0x70, 0x25, 0x6b, 0x2c, 0x0f, 0x95, 0x66, 0x54, 0xcd, 0x08, 0xac, 0x3c, 0x45, 0x16, 0x7d, 0xa8, + 0x40, 0x37, 0xd9, 0xb5, 0xab, 0xb4, 0xd8, 0x6f, 0xd0, 0x27, 0x28,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0x77, 0x6a, 0xbb, 0xdb, 0xfa, 0x37, 0x00, + 0x77, 0xe7, 0x37, 0x3d, 0x8f, 0x83, 0xc0, 0x8e, 0x92, 0x7f, 0x9c, 0x8e, 0xc2, 0xff, 0xf2, 0x63, + 0xfc, 0x5f, 0x3f, 0x73, 0x65, 0xd3, 0x99, 0xf5, 0xaf, 0x00, 0x6a, 0xd2, 0xfd, 0xac, 0xbe, 0x60, + 0x27, 0x84, 0xda, 0x3e, 0xb9, 0x94, 0x33, 0x6f, 0x63, 0x1c, 0xe3, 0x0d, 0x54, 0x60, 0x63, 0x62, + 0x1c, 0xb8, 0x37, 0x5a, 0x05, 0xab, 0xe5, 0x76, 0xe5, 0xd1, 0x96, 0xac, 0xd3, 0xa1, 0x03, 0x08, + 0x73, 0xc8, 0x80, 0xb8, 0x72, 0xa5, 0xc5, 0x3f, 0x75, 0xf7, 0xe3, 0xf5, 0x54, 0x03, 0x37, 0x53, + 0x0d, 0xfc, 0x9c, 0x6a, 0xe0, 0x6a, 0xa6, 0x95, 0x6e, 0x66, 0x5a, 0xe9, 0xfb, 0x4c, 0x2b, 0xbd, + 0x3f, 0xf1, 0x88, 0x18, 0xc7, 0x4e, 0xea, 0xd6, 0xda, 0xab, 0x42, 0xa8, 0x30, 0xb3, 0xf7, 0x26, + 0x74, 0x1e, 0x78, 0xaf, 0x9c, 0x9a, 0x4c, 0xdc, 0xf3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x49, + 0xb3, 0x8c, 0xec, 0x6c, 0x05, 0x00, 0x00, } func (m *StateInfoIndex) Marshal() (dAtA []byte, err error) { @@ -582,6 +592,13 @@ func (m *BlockHeightToFinalizationQueue) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if len(m.RollappId) > 0 { + i -= len(m.RollappId) + copy(dAtA[i:], m.RollappId) + i = encodeVarintStateInfo(dAtA, i, uint64(len(m.RollappId))) + i-- + dAtA[i] = 0x1a + } if len(m.FinalizationQueue) > 0 { for iNdEx := len(m.FinalizationQueue) - 1; iNdEx >= 0; iNdEx-- { { @@ -702,6 +719,10 @@ func (m *BlockHeightToFinalizationQueue) Size() (n int) { n += 1 + l + sovStateInfo(uint64(l)) } } + l = len(m.RollappId) + if l > 0 { + n += 1 + l + sovStateInfo(uint64(l)) + } return n } @@ -1336,6 +1357,38 @@ func (m *BlockHeightToFinalizationQueue) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RollappId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStateInfo + } + 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 ErrInvalidLengthStateInfo + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStateInfo + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RollappId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipStateInfo(dAtA[iNdEx:]) diff --git a/types/pb/dymensionxyz/dymension/rollapp/tx.pb.go b/types/pb/dymensionxyz/dymension/rollapp/tx.pb.go index 5386dde4a..9b80047da 100644 --- a/types/pb/dymensionxyz/dymension/rollapp/tx.pb.go +++ b/types/pb/dymensionxyz/dymension/rollapp/tx.pb.go @@ -39,7 +39,7 @@ type MsgCreateRollapp struct { // metadata is the rollapp metadata Metadata *RollappMetadata `protobuf:"bytes,13,opt,name=metadata,proto3" json:"metadata,omitempty"` // genesis_info is the genesis information - GenesisInfo GenesisInfo `protobuf:"bytes,14,opt,name=genesis_info,json=genesisInfo,proto3" json:"genesis_info"` + GenesisInfo *GenesisInfo `protobuf:"bytes,14,opt,name=genesis_info,json=genesisInfo,proto3" json:"genesis_info,omitempty"` // vm_type is the type of rollapp machine: EVM or WASM VmType Rollapp_VMType `protobuf:"varint,15,opt,name=vm_type,json=vmType,proto3,enum=dymensionxyz.dymension.rollapp.Rollapp_VMType" json:"vm_type,omitempty"` } @@ -112,11 +112,11 @@ func (m *MsgCreateRollapp) GetMetadata() *RollappMetadata { return nil } -func (m *MsgCreateRollapp) GetGenesisInfo() GenesisInfo { +func (m *MsgCreateRollapp) GetGenesisInfo() *GenesisInfo { if m != nil { return m.GenesisInfo } - return GenesisInfo{} + return nil } func (m *MsgCreateRollapp) GetVmType() Rollapp_VMType { @@ -175,7 +175,7 @@ type MsgUpdateRollappInformation struct { // metadata is the rollapp metadata Metadata *RollappMetadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // genesis_info is the genesis information - GenesisInfo GenesisInfo `protobuf:"bytes,6,opt,name=genesis_info,json=genesisInfo,proto3" json:"genesis_info"` + GenesisInfo *GenesisInfo `protobuf:"bytes,6,opt,name=genesis_info,json=genesisInfo,proto3" json:"genesis_info,omitempty"` } func (m *MsgUpdateRollappInformation) Reset() { *m = MsgUpdateRollappInformation{} } @@ -239,11 +239,11 @@ func (m *MsgUpdateRollappInformation) GetMetadata() *RollappMetadata { return nil } -func (m *MsgUpdateRollappInformation) GetGenesisInfo() GenesisInfo { +func (m *MsgUpdateRollappInformation) GetGenesisInfo() *GenesisInfo { if m != nil { return m.GenesisInfo } - return GenesisInfo{} + return nil } type MsgUpdateRollappInformationResponse struct { @@ -301,7 +301,7 @@ type MsgUpdateState struct { BDs BlockDescriptors `protobuf:"bytes,7,opt,name=BDs,proto3" json:"BDs"` // last is true if this is the last batch of the sequencer Last bool `protobuf:"varint,8,opt,name=last,proto3" json:"last,omitempty"` - // rollapp_revision is the revision of the rollapp chain + // rollapp_revision is the revision of the rollapp chain. increases after hard fork RollappRevision uint64 `protobuf:"varint,9,opt,name=rollapp_revision,json=rollappRevision,proto3" json:"rollapp_revision,omitempty"` } @@ -911,27 +911,27 @@ func (m *MsgRemoveAppResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveAppResponse proto.InternalMessageInfo -// MsgMarkVulnerableRollapps marks specified versions as vulnerable as well as +// MsgMarkObsoleteRollapps marks specified versions as obsolete as well as // all corresponding rollapps. Must be called by the governance. -type MsgMarkVulnerableRollapps struct { +type MsgMarkObsoleteRollapps struct { // Authority is the authority address. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // DrsVersions is a list of DRS versions that will be marked vulnerable. + // DrsVersions is a list of DRS versions that will be marked obsolete. DrsVersions []uint32 `protobuf:"varint,2,rep,packed,name=drs_versions,json=drsVersions,proto3" json:"drs_versions,omitempty"` } -func (m *MsgMarkVulnerableRollapps) Reset() { *m = MsgMarkVulnerableRollapps{} } -func (m *MsgMarkVulnerableRollapps) String() string { return proto.CompactTextString(m) } -func (*MsgMarkVulnerableRollapps) ProtoMessage() {} -func (*MsgMarkVulnerableRollapps) Descriptor() ([]byte, []int) { +func (m *MsgMarkObsoleteRollapps) Reset() { *m = MsgMarkObsoleteRollapps{} } +func (m *MsgMarkObsoleteRollapps) String() string { return proto.CompactTextString(m) } +func (*MsgMarkObsoleteRollapps) ProtoMessage() {} +func (*MsgMarkObsoleteRollapps) Descriptor() ([]byte, []int) { return fileDescriptor_fa9b86052c2a43cd, []int{14} } -func (m *MsgMarkVulnerableRollapps) XXX_Unmarshal(b []byte) error { +func (m *MsgMarkObsoleteRollapps) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgMarkVulnerableRollapps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgMarkObsoleteRollapps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgMarkVulnerableRollapps.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgMarkObsoleteRollapps.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -941,47 +941,47 @@ func (m *MsgMarkVulnerableRollapps) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *MsgMarkVulnerableRollapps) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMarkVulnerableRollapps.Merge(m, src) +func (m *MsgMarkObsoleteRollapps) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMarkObsoleteRollapps.Merge(m, src) } -func (m *MsgMarkVulnerableRollapps) XXX_Size() int { +func (m *MsgMarkObsoleteRollapps) XXX_Size() int { return m.Size() } -func (m *MsgMarkVulnerableRollapps) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMarkVulnerableRollapps.DiscardUnknown(m) +func (m *MsgMarkObsoleteRollapps) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMarkObsoleteRollapps.DiscardUnknown(m) } -var xxx_messageInfo_MsgMarkVulnerableRollapps proto.InternalMessageInfo +var xxx_messageInfo_MsgMarkObsoleteRollapps proto.InternalMessageInfo -func (m *MsgMarkVulnerableRollapps) GetAuthority() string { +func (m *MsgMarkObsoleteRollapps) GetAuthority() string { if m != nil { return m.Authority } return "" } -func (m *MsgMarkVulnerableRollapps) GetDrsVersions() []uint32 { +func (m *MsgMarkObsoleteRollapps) GetDrsVersions() []uint32 { if m != nil { return m.DrsVersions } return nil } -type MsgMarkVulnerableRollappsResponse struct { +type MsgMarkObsoleteRollappsResponse struct { } -func (m *MsgMarkVulnerableRollappsResponse) Reset() { *m = MsgMarkVulnerableRollappsResponse{} } -func (m *MsgMarkVulnerableRollappsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgMarkVulnerableRollappsResponse) ProtoMessage() {} -func (*MsgMarkVulnerableRollappsResponse) Descriptor() ([]byte, []int) { +func (m *MsgMarkObsoleteRollappsResponse) Reset() { *m = MsgMarkObsoleteRollappsResponse{} } +func (m *MsgMarkObsoleteRollappsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMarkObsoleteRollappsResponse) ProtoMessage() {} +func (*MsgMarkObsoleteRollappsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_fa9b86052c2a43cd, []int{15} } -func (m *MsgMarkVulnerableRollappsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgMarkObsoleteRollappsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgMarkVulnerableRollappsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgMarkObsoleteRollappsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgMarkVulnerableRollappsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgMarkObsoleteRollappsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -991,17 +991,17 @@ func (m *MsgMarkVulnerableRollappsResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *MsgMarkVulnerableRollappsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMarkVulnerableRollappsResponse.Merge(m, src) +func (m *MsgMarkObsoleteRollappsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMarkObsoleteRollappsResponse.Merge(m, src) } -func (m *MsgMarkVulnerableRollappsResponse) XXX_Size() int { +func (m *MsgMarkObsoleteRollappsResponse) XXX_Size() int { return m.Size() } -func (m *MsgMarkVulnerableRollappsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMarkVulnerableRollappsResponse.DiscardUnknown(m) +func (m *MsgMarkObsoleteRollappsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMarkObsoleteRollappsResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgMarkVulnerableRollappsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgMarkObsoleteRollappsResponse proto.InternalMessageInfo func init() { proto.RegisterType((*MsgCreateRollapp)(nil), "dymensionxyz.dymension.rollapp.MsgCreateRollapp") @@ -1018,8 +1018,8 @@ func init() { proto.RegisterType((*MsgUpdateAppResponse)(nil), "dymensionxyz.dymension.rollapp.MsgUpdateAppResponse") proto.RegisterType((*MsgRemoveApp)(nil), "dymensionxyz.dymension.rollapp.MsgRemoveApp") proto.RegisterType((*MsgRemoveAppResponse)(nil), "dymensionxyz.dymension.rollapp.MsgRemoveAppResponse") - proto.RegisterType((*MsgMarkVulnerableRollapps)(nil), "dymensionxyz.dymension.rollapp.MsgMarkVulnerableRollapps") - proto.RegisterType((*MsgMarkVulnerableRollappsResponse)(nil), "dymensionxyz.dymension.rollapp.MsgMarkVulnerableRollappsResponse") + proto.RegisterType((*MsgMarkObsoleteRollapps)(nil), "dymensionxyz.dymension.rollapp.MsgMarkObsoleteRollapps") + proto.RegisterType((*MsgMarkObsoleteRollappsResponse)(nil), "dymensionxyz.dymension.rollapp.MsgMarkObsoleteRollappsResponse") } func init() { @@ -1027,64 +1027,65 @@ func init() { } var fileDescriptor_fa9b86052c2a43cd = []byte{ - // 910 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x41, 0x73, 0x1b, 0x35, - 0x14, 0xce, 0xda, 0x8e, 0x63, 0x3f, 0x3b, 0xae, 0x2b, 0x32, 0x99, 0x25, 0x6d, 0x8d, 0xeb, 0x0c, - 0x33, 0x86, 0x0e, 0x36, 0xa4, 0xb7, 0x70, 0x4a, 0xc8, 0xd0, 0x16, 0xc6, 0x53, 0xd8, 0x86, 0x1c, - 0xb8, 0x18, 0xd9, 0xab, 0xac, 0x35, 0xdd, 0x95, 0x16, 0x49, 0x76, 0x6a, 0x8e, 0x5c, 0x99, 0x61, - 0xf8, 0x29, 0x1c, 0xb8, 0x72, 0x65, 0x7a, 0xec, 0x11, 0x2e, 0x0c, 0x93, 0x1c, 0xf8, 0x1b, 0x8c, - 0xb4, 0xda, 0xb5, 0xd3, 0x38, 0x76, 0xe8, 0xf4, 0xb4, 0x7a, 0x4f, 0x7a, 0x4f, 0xef, 0xfb, 0xbe, - 0x27, 0xad, 0x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 0xf6, 0x6b, 0xba, 0x86, - 0x59, 0x48, 0x6b, 0x17, 0xee, 0x5f, 0xbb, 0x5b, 0x5a, 0xd2, 0xe1, 0x77, 0x2f, 0xcf, 0x1b, 0xce, - 0xab, 0xf3, 0x86, 0xf3, 0xcf, 0x79, 0xc3, 0xf9, 0xe5, 0xa2, 0xb1, 0xf6, 0xea, 0xa2, 0xb1, 0xf6, - 0xe7, 0x45, 0x63, 0xed, 0xdb, 0xcf, 0x03, 0xaa, 0x46, 0xe3, 0x41, 0x67, 0xc8, 0xa3, 0x2b, 0x0f, - 0x0c, 0xca, 0x54, 0x37, 0x79, 0x7a, 0xc4, 0x83, 0x15, 0xaf, 0x8f, 0x41, 0xd1, 0xbc, 0x2f, 0x1e, - 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x69, 0x20, 0xba, 0x5d, 0x8b, 0x09, 0x00, 0x00, + // 918 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xda, 0x1b, 0xff, 0x78, 0x76, 0x5c, 0x77, 0x88, 0xc2, 0x2a, 0x6d, 0x5d, 0xd7, 0x15, + 0x92, 0xa1, 0xc2, 0x86, 0xf4, 0x80, 0x14, 0x4e, 0x31, 0x11, 0x6d, 0x41, 0x56, 0x60, 0x1b, 0x7a, + 0xe0, 0x62, 0xc6, 0xde, 0xc9, 0x7a, 0xa8, 0x77, 0x67, 0x99, 0x19, 0x3b, 0x35, 0x47, 0xae, 0x48, + 0x88, 0x3f, 0x85, 0x03, 0x57, 0xae, 0xa8, 0xc7, 0x1e, 0xe1, 0x82, 0x50, 0x72, 0xe0, 0xdf, 0x40, + 0x33, 0x3b, 0xbb, 0x76, 0x1a, 0xff, 0xa2, 0xe2, 0xb4, 0xf3, 0xde, 0xcc, 0x9b, 0xf7, 0xbe, 0xef, + 0x7b, 0x33, 0x3b, 0xf0, 0xbe, 0x9c, 0x46, 0x44, 0xb4, 0xbd, 0x69, 0x40, 0x42, 0x41, 0x59, 0xf8, + 0x62, 0xfa, 0xfd, 0xcc, 0x68, 0x73, 0x36, 0x1a, 0xe1, 0x28, 0x6a, 0xcb, 0x17, 0xad, 0x88, 0x33, + 0xc9, 0x50, 0x6d, 0x7e, 0x61, 0x2b, 0x35, 0x5a, 0x66, 0xe1, 0xfe, 0x9d, 0x78, 0xbb, 0x01, 0x13, + 0x01, 0x13, 0xed, 0x40, 0xf8, 0xed, 0xc9, 0x87, 0xea, 0x13, 0x87, 0xef, 0x7f, 0xbc, 0x51, 0xb6, + 0xfe, 0x88, 0x0d, 0x9e, 0xf7, 0x3c, 0x22, 0x06, 0x9c, 0x46, 0x92, 0x71, 0x13, 0x7c, 0xb0, 0x51, + 0xb0, 0xf9, 0x9a, 0x98, 0x87, 0x1b, 0xc5, 0x04, 0x44, 0x62, 0x0f, 0x4b, 0x6c, 0x82, 0x3e, 0xda, + 0x28, 0xc8, 0x27, 0x21, 0x11, 0x54, 0xf4, 0x68, 0x78, 0xc6, 0x4c, 0xe0, 0xae, 0xcf, 0x7c, 0xa6, + 0x87, 0x6d, 0x35, 0x8a, 0xbd, 0x8d, 0x9f, 0xb2, 0x50, 0xed, 0x0a, 0xff, 0x13, 0x4e, 0xb0, 0x24, + 0x6e, 0x1c, 0x8d, 0x1c, 0xc8, 0x0f, 0x94, 0x83, 0x71, 0xc7, 0xaa, 0x5b, 0xcd, 0xa2, 0x9b, 0x98, + 0xe8, 0x0e, 0x80, 0x49, 0xd1, 0xa3, 0x9e, 0x93, 0xd1, 0x93, 0x45, 0xe3, 0x79, 0xe2, 0xa1, 0x07, + 0x70, 0x93, 0x86, 0x54, 0x52, 0x3c, 0xea, 0x09, 0xf2, 0xdd, 0x98, 0x84, 0x03, 0xc2, 0x9d, 0x92, + 0x5e, 0x55, 0x35, 0x13, 0x4f, 0x13, 0x3f, 0xda, 0x85, 0x6d, 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6, 0xb9, 0xe3, 0x96, 0x3c, + 0x2e, 0x9e, 0x19, 0xd7, 0x61, 0x45, 0x55, 0x30, 0x0b, 0x69, 0xdc, 0x83, 0xbb, 0x4b, 0x72, 0x25, + 0xe5, 0x74, 0xbe, 0x79, 0x79, 0x51, 0xb3, 0x5e, 0x5d, 0xd4, 0xac, 0xbf, 0x2f, 0x6a, 0xd6, 0xcf, + 0x97, 0xb5, 0xad, 0x57, 0x97, 0xb5, 0xad, 0x3f, 0x2e, 0x6b, 0x5b, 0x5f, 0x7f, 0xea, 0x53, 0x39, + 0x1c, 0xf7, 0x5b, 0x03, 0x16, 0x5c, 0x7b, 0x60, 0xd0, 0x50, 0xb6, 0xe3, 0xa7, 0x47, 0xd4, 0x5f, + 0xf3, 0xfa, 0xe8, 0xe7, 0xf4, 0xdb, 0xe2, 0xe1, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x21, 0x3b, + 0x97, 0xe5, 0xc0, 0x09, 0x00, 0x00, } func (m *MsgCreateRollapp) Marshal() (dAtA []byte, err error) { @@ -1112,16 +1113,18 @@ func (m *MsgCreateRollapp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x78 } - { - size, err := m.GenesisInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.GenesisInfo != nil { + { + size, err := m.GenesisInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x72 } - i-- - dAtA[i] = 0x72 if m.Metadata != nil { { size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) @@ -1208,16 +1211,18 @@ func (m *MsgUpdateRollappInformation) MarshalToSizedBuffer(dAtA []byte) (int, er _ = i var l int _ = l - { - size, err := m.GenesisInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.GenesisInfo != nil { + { + size, err := m.GenesisInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - i-- - dAtA[i] = 0x32 if m.Metadata != nil { { size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) @@ -1702,7 +1707,7 @@ func (m *MsgRemoveAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgMarkVulnerableRollapps) Marshal() (dAtA []byte, err error) { +func (m *MsgMarkObsoleteRollapps) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1712,12 +1717,12 @@ func (m *MsgMarkVulnerableRollapps) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMarkVulnerableRollapps) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMarkObsoleteRollapps) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMarkVulnerableRollapps) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMarkObsoleteRollapps) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1750,7 +1755,7 @@ func (m *MsgMarkVulnerableRollapps) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgMarkVulnerableRollappsResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgMarkObsoleteRollappsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1760,12 +1765,12 @@ func (m *MsgMarkVulnerableRollappsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMarkVulnerableRollappsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgMarkObsoleteRollappsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMarkVulnerableRollappsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgMarkObsoleteRollappsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1810,8 +1815,10 @@ func (m *MsgCreateRollapp) Size() (n int) { l = m.Metadata.Size() n += 1 + l + sovTx(uint64(l)) } - l = m.GenesisInfo.Size() - n += 1 + l + sovTx(uint64(l)) + if m.GenesisInfo != nil { + l = m.GenesisInfo.Size() + n += 1 + l + sovTx(uint64(l)) + } if m.VmType != 0 { n += 1 + sovTx(uint64(m.VmType)) } @@ -1849,8 +1856,10 @@ func (m *MsgUpdateRollappInformation) Size() (n int) { l = m.Metadata.Size() n += 1 + l + sovTx(uint64(l)) } - l = m.GenesisInfo.Size() - n += 1 + l + sovTx(uint64(l)) + if m.GenesisInfo != nil { + l = m.GenesisInfo.Size() + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -2059,7 +2068,7 @@ func (m *MsgRemoveAppResponse) Size() (n int) { return n } -func (m *MsgMarkVulnerableRollapps) Size() (n int) { +func (m *MsgMarkObsoleteRollapps) Size() (n int) { if m == nil { return 0 } @@ -2079,7 +2088,7 @@ func (m *MsgMarkVulnerableRollapps) Size() (n int) { return n } -func (m *MsgMarkVulnerableRollappsResponse) Size() (n int) { +func (m *MsgMarkObsoleteRollappsResponse) Size() (n int) { if m == nil { return 0 } @@ -2316,6 +2325,9 @@ func (m *MsgCreateRollapp) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } + if m.GenesisInfo == nil { + m.GenesisInfo = &GenesisInfo{} + } if err := m.GenesisInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2600,6 +2612,9 @@ func (m *MsgUpdateRollappInformation) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } + if m.GenesisInfo == nil { + m.GenesisInfo = &GenesisInfo{} + } if err := m.GenesisInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -4001,7 +4016,7 @@ func (m *MsgRemoveAppResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMarkVulnerableRollapps) Unmarshal(dAtA []byte) error { +func (m *MsgMarkObsoleteRollapps) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4024,10 +4039,10 @@ func (m *MsgMarkVulnerableRollapps) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMarkVulnerableRollapps: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMarkObsoleteRollapps: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMarkVulnerableRollapps: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgMarkObsoleteRollapps: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4159,7 +4174,7 @@ func (m *MsgMarkVulnerableRollapps) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMarkVulnerableRollappsResponse) Unmarshal(dAtA []byte) error { +func (m *MsgMarkObsoleteRollappsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4182,10 +4197,10 @@ func (m *MsgMarkVulnerableRollappsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMarkVulnerableRollappsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgMarkObsoleteRollappsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMarkVulnerableRollappsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgMarkObsoleteRollappsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: