diff --git a/Makefile b/Makefile index 25aaba2032..4bdc279c95 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ coverage-report: test-coverage clean-test-dir: @rm -rf x/crosschain/client/integrationtests/.zetacored @rm -rf x/crosschain/client/querytests/.zetacored + @rm -rf x/observer/client/querytests/.zetacored run-test: @go test ${TEST_BUILD_FLAGS} ${TEST_DIR} @@ -130,10 +131,13 @@ lint: lint-pre @golangci-lint run proto: - @echo "--> Generating Go from protocol buffer files" + @echo "--> Removing old Go types " + @find . -name '*.pb.go' -type f -delete + @echo "--> Generating new Go types from protocol buffer files" @bash ./scripts/protoc-gen-go.sh @echo "--> Generating OpenAPI specs" @bash ./scripts/protoc-gen-openapi.sh + .PHONY: proto specs: diff --git a/app/app.go b/app/app.go index e5f1674549..cf6c6d1f9e 100644 --- a/app/app.go +++ b/app/app.go @@ -1,6 +1,7 @@ package app import ( + zetaCoreModuleKeeper "github.com/zeta-chain/zetacore/x/crosschain/keeper" "time" "github.com/cosmos/cosmos-sdk/client" @@ -102,7 +103,6 @@ import ( // this line is used by starport scaffolding # stargate/app/moduleImport zetaCoreModule "github.com/zeta-chain/zetacore/x/crosschain" - zetaCoreModuleKeeper "github.com/zeta-chain/zetacore/x/crosschain/keeper" zetaCoreModuleTypes "github.com/zeta-chain/zetacore/x/crosschain/types" emissionsModule "github.com/zeta-chain/zetacore/x/emissions" diff --git a/app/setup_handlers.go b/app/setup_handlers.go index d8a613e50f..6bf1ec1040 100644 --- a/app/setup_handlers.go +++ b/app/setup_handlers.go @@ -5,18 +5,22 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/upgrade/types" + crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" ) -const releaseVersion = "v6.0.0" +const releaseVersion = "v7.0.0" func SetupHandlers(app *App) { app.UpgradeKeeper.SetUpgradeHandler(releaseVersion, func(ctx sdk.Context, plan types.Plan, vm module.VersionMap) (module.VersionMap, error) { app.Logger().Info("Running upgrade handler for " + releaseVersion) + // Updated version map to thelatest consensus versions from each module for m, mb := range app.mm.Modules { vm[m] = mb.ConsensusVersion() } + // Decrement the consensus version of the cross chain module to trigger the migration v1 -> v2 + vm[crosschaintypes.ModuleName] = vm[crosschaintypes.ModuleName] - 1 return app.mm.RunMigrations(ctx, app.configurator, vm) }) diff --git a/cmd/zetaclientd/keygen_tss.go b/cmd/zetaclientd/keygen_tss.go index 6b58ba2c44..945f77ee96 100644 --- a/cmd/zetaclientd/keygen_tss.go +++ b/cmd/zetaclientd/keygen_tss.go @@ -6,7 +6,7 @@ import ( "github.com/rs/zerolog" "github.com/tendermint/tendermint/crypto/secp256k1" "github.com/zeta-chain/zetacore/common" - crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" + observerTypes "github.com/zeta-chain/zetacore/x/observer/types" mc "github.com/zeta-chain/zetacore/zetaclient" "github.com/zeta-chain/zetacore/zetaclient/config" tsscommon "gitlab.com/thorchain/tss/go-tss/common" @@ -38,17 +38,17 @@ func GenerateTss(logger zerolog.Logger, cfg *config.Config, zetaBridge *mc.ZetaC // This loop will try keygen at the keygen block and then wait for keygen to be successfully reported by all nodes before breaking out of the loop. // If keygen is unsuccessful , it will reset the triedKeygenAtBlock flag and try again at a new keygen block. - if cfg.Keygen.Status == crosschaintypes.KeygenStatus_KeyGenSuccess { + if cfg.Keygen.Status == observerTypes.KeygenStatus_KeyGenSuccess { cfg.TestTssKeysign = true return tss, nil } // Arrive at this stage only if keygen is unsuccessfully reported by every node . This will reset the flag and to try again at a new keygen block - if cfg.Keygen.Status == crosschaintypes.KeygenStatus_KeyGenFailed { + if cfg.Keygen.Status == observerTypes.KeygenStatus_KeyGenFailed { triedKeygenAtBlock = false continue } // Try generating TSS at keygen block , only when status is pending keygen and generation has not been tried at the block - if cfg.Keygen.Status == crosschaintypes.KeygenStatus_PendingKeygen { + if cfg.Keygen.Status == observerTypes.KeygenStatus_PendingKeygen { // Return error if RPC is not working currentBlock, err := zetaBridge.GetZetaBlockHeight() if err != nil { diff --git a/cmd/zetacored/observer_accounts.go b/cmd/zetacored/observer_accounts.go index 58a764bfde..f3600c3cea 100644 --- a/cmd/zetacored/observer_accounts.go +++ b/cmd/zetacored/observer_accounts.go @@ -69,7 +69,7 @@ func AddObserverAccountsCmd() *cobra.Command { } var observerMapper []*types.ObserverMapper var grantAuthorizations []authz.GrantAuthorization - var nodeAccounts []*crosschaintypes.NodeAccount + var nodeAccounts []*types.NodeAccount var keygenPubKeys []string observersForChain := map[int64][]string{} // DefaultChainsList is based on Build Flags @@ -121,11 +121,11 @@ func AddObserverAccountsCmd() *cobra.Command { Secp256k1: pubkey, Ed25519: "", } - na := crosschaintypes.NodeAccount{ + na := types.NodeAccount{ Operator: info.ObserverAddress, GranteeAddress: info.ZetaClientGranteeAddress, GranteePubkey: &pubkeySet, - NodeStatus: crosschaintypes.NodeStatus_Active, + NodeStatus: types.NodeStatus_Active, } nodeAccounts = append(nodeAccounts, &na) } @@ -156,16 +156,6 @@ func AddObserverAccountsCmd() *cobra.Command { // Add node accounts to cross chain genesis state zetaCrossChainGenState := crosschaintypes.GetGenesisStateFromAppState(cdc, appState) - zetaCrossChainGenState.NodeAccountList = nodeAccounts - keyGenStatus := crosschaintypes.KeygenStatus_PendingKeygen - if keyGenBlock == 0 { - keyGenStatus = crosschaintypes.KeygenStatus_KeyGenSuccess - } - zetaCrossChainGenState.Keygen = &crosschaintypes.Keygen{ - Status: keyGenStatus, - GranteePubkeys: keygenPubKeys, - BlockNumber: keyGenBlock, - } if keyGenBlock == 0 { operatorList := make([]string, len(nodeAccounts)) @@ -185,6 +175,16 @@ func AddObserverAccountsCmd() *cobra.Command { // Add observers to observer genesis state zetaObserverGenState := types.GetGenesisStateFromAppState(cdc, appState) zetaObserverGenState.Observers = observerMapper + zetaObserverGenState.NodeAccountList = nodeAccounts + keyGenStatus := types.KeygenStatus_PendingKeygen + if keyGenBlock == 0 { + keyGenStatus = types.KeygenStatus_KeyGenSuccess + } + zetaObserverGenState.Keygen = &types.Keygen{ + Status: keyGenStatus, + GranteePubkeys: keygenPubKeys, + BlockNumber: keyGenBlock, + } // Add grant authorizations to authz genesis state var authzGenState authz.GenesisState diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index b927dc0258..0b86208264 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -26801,6 +26801,21 @@ paths: type: string tags: - Query + /zeta-chain/crosschain/get_tss_address: + get: + summary: Queries a list of GetTssAddress items. + operationId: Query_GetTssAddress + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/crosschainQueryGetTssAddressResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + tags: + - Query /zeta-chain/crosschain/inTxHashToCctx: get: summary: Queries a list of InTxHashToCctx items. @@ -26880,21 +26895,6 @@ paths: type: string tags: - Query - /zeta-chain/crosschain/keygen: - get: - summary: Queries a keygen by index. - operationId: Query_Keygen - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryGetKeygenResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - tags: - - Query /zeta-chain/crosschain/lastBlockHeight: get: summary: Queries a list of lastBlockHeight items. @@ -26989,85 +26989,6 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/crosschain/nodeAccount: - get: - summary: Queries a list of nodeAccount items. - operationId: Query_NodeAccountAll - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryAllNodeAccountResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: |- - offset is a numeric offset that can be used when key is unavailable. - It is less efficient than using key. Only one of offset or key should - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: |- - limit is the total number of results to be returned in the result page. - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: |- - count_total is set to true to indicate that the result set should include - a count of the total number of items available for pagination in UIs. - count_total is only respected when offset is used. It is ignored when key - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: |- - reverse is set to true if results are to be returned in the descending order. - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /zeta-chain/crosschain/nodeAccount/{index}: - get: - summary: Queries a nodeAccount by index. - operationId: Query_NodeAccount - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryGetNodeAccountResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: - - name: index - in: path - required: true - type: string - tags: - - Query /zeta-chain/crosschain/outTxTracker: get: summary: Queries a list of OutTxTracker items. @@ -27328,79 +27249,193 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/observer/observers_by_chain/{observation_chain}: + /zeta-chain/observer/get_client_params_for_chain/{chainID}: get: - summary: Queries a list of ObserversByChainAndType items. - operationId: Query_ObserversByChain + summary: Queries a list of GetClientParamsForChain items. + operationId: Query_GetCoreParamsForChain responses: "200": description: A successful response. schema: - $ref: '#/definitions/observerQueryObserversByChainResponse' + $ref: '#/definitions/observerQueryGetCoreParamsForChainResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' parameters: - - name: observation_chain + - name: chainID in: path required: true type: string + format: int64 tags: - Query - /zeta-chain/observer/params: + /zeta-chain/observer/get_core_params: get: - summary: Parameters queries the parameters of the module. - operationId: Query_Params + summary: Queries a list of GetCoreParams items. + operationId: Query_GetCoreParams responses: "200": description: A successful response. schema: - $ref: '#/definitions/zetacoreobserverQueryParamsResponse' + $ref: '#/definitions/observerQueryGetCoreParamsResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/observer/supportedChains: + /zeta-chain/observer/keygen: get: - operationId: Query_SupportedChains + summary: Queries a keygen by index. + operationId: Query_Keygen responses: "200": description: A successful response. schema: - $ref: '#/definitions/observerQuerySupportedChainsResponse' + $ref: '#/definitions/observerQueryGetKeygenResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/zetacore/crosschain/get_tss_address: + /zeta-chain/observer/nodeAccount: get: - summary: Queries a list of GetTssAddress items. - operationId: Query_GetTssAddress + summary: Queries a list of nodeAccount items. + operationId: Query_NodeAccountAll responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryGetTssAddressResponse' + $ref: '#/definitions/observerQueryAllNodeAccountResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: |- + limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: |- + count_total is set to true to indicate that the result set should include + a count of the total number of items available for pagination in UIs. + count_total is only respected when offset is used. It is ignored when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /zeta-chain/observer/nodeAccount/{index}: + get: + summary: Queries a nodeAccount by index. + operationId: Query_NodeAccount + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryGetNodeAccountResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: index + in: path + required: true + type: string + tags: + - Query + /zeta-chain/observer/observers_by_chain/{observation_chain}: + get: + summary: Queries a list of ObserversByChainAndType items. + operationId: Query_ObserversByChain + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryObserversByChainResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' + parameters: + - name: observation_chain + in: path + required: true + type: string tags: - Query - /zeta-chain/zetacore/crosschain/permission_flags: + /zeta-chain/observer/params: + get: + summary: Parameters queries the parameters of the module. + operationId: Query_Params + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/zetacoreobserverQueryParamsResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + tags: + - Query + /zeta-chain/observer/permission_flags: get: - summary: Queries a PermissionFlags by index. operationId: Query_PermissionFlags responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryGetPermissionFlagsResponse' + $ref: '#/definitions/observerQueryGetPermissionFlagsResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + tags: + - Query + /zeta-chain/observer/supportedChains: + get: + operationId: Query_SupportedChains + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQuerySupportedChainsResponse' default: description: An unexpected error response. schema: @@ -27546,36 +27581,15 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/zetacore/observer/get_client_params_for_chain/{chainID}: - get: - summary: Queries a list of GetClientParamsForChain items. - operationId: Query_GetCoreParamsForChain - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/observerQueryGetCoreParamsForChainResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: - - name: chainID - in: path - required: true - type: string - format: int64 - tags: - - Query - /zeta-chain/zetacore/observer/get_core_params: + /zeta-chain/zetacore/observer/show_observer_count: get: - summary: Queries a list of GetCoreParams items. - operationId: Query_GetCoreParams + summary: Queries a list of ShowObserverCount items. + operationId: Query_ShowObserverCount responses: "200": description: A successful response. schema: - $ref: '#/definitions/observerQueryGetCoreParamsResponse' + $ref: '#/definitions/observerQueryShowObserverCountResponse' default: description: An unexpected error response. schema: @@ -50088,27 +50102,6 @@ definitions: inbound_tx_finalized_zeta_height: type: string format: uint64 - crosschainKeygen: - type: object - properties: - status: - $ref: '#/definitions/crosschainKeygenStatus' - title: 0--to generate key; 1--generated; 2--error - granteePubkeys: - type: array - items: - type: string - blockNumber: - type: string - format: int64 - title: the blocknum that the key needs to be generated - crosschainKeygenStatus: - type: string - enum: - - PendingKeygen - - KeyGenSuccess - - KeyGenFailed - default: PendingKeygen crosschainLastBlockHeight: type: object properties: @@ -50134,37 +50127,10 @@ definitions: type: object crosschainMsgRemoveFromOutTxTrackerResponse: type: object - crosschainMsgSetNodeKeysResponse: - type: object - crosschainMsgUpdateKeygenResponse: - type: object - crosschainMsgUpdatePermissionFlagsResponse: - type: object crosschainMsgVoteOnObservedInboundTxResponse: type: object crosschainMsgVoteOnObservedOutboundTxResponse: type: object - crosschainNodeAccount: - type: object - properties: - operator: - type: string - granteeAddress: - type: string - granteePubkey: - $ref: '#/definitions/commonPubKeySet' - nodeStatus: - $ref: '#/definitions/crosschainNodeStatus' - crosschainNodeStatus: - type: string - enum: - - Unknown - - Whitelisted - - Standby - - Ready - - Active - - Disabled - default: Unknown crosschainOutTxTracker: type: object properties: @@ -50227,11 +50193,6 @@ definitions: tss: type: string title: store key is tss+chainid - crosschainPermissionFlags: - type: object - properties: - isInboundEnabled: - type: boolean crosschainQueryAllCctxPendingResponse: type: object properties: @@ -50292,16 +50253,6 @@ definitions: $ref: '#/definitions/crosschainLastBlockHeight' pagination: $ref: '#/definitions/v1beta1PageResponse' - crosschainQueryAllNodeAccountResponse: - type: object - properties: - NodeAccount: - type: array - items: - type: object - $ref: '#/definitions/crosschainNodeAccount' - pagination: - $ref: '#/definitions/v1beta1PageResponse' crosschainQueryAllOutTxTrackerByChainResponse: type: object properties: @@ -50360,31 +50311,16 @@ definitions: properties: inTxHashToCctx: $ref: '#/definitions/crosschainInTxHashToCctx' - crosschainQueryGetKeygenResponse: - type: object - properties: - Keygen: - $ref: '#/definitions/crosschainKeygen' crosschainQueryGetLastBlockHeightResponse: type: object properties: LastBlockHeight: $ref: '#/definitions/crosschainLastBlockHeight' - crosschainQueryGetNodeAccountResponse: - type: object - properties: - NodeAccount: - $ref: '#/definitions/crosschainNodeAccount' crosschainQueryGetOutTxTrackerResponse: type: object properties: outTxTracker: $ref: '#/definitions/crosschainOutTxTracker' - crosschainQueryGetPermissionFlagsResponse: - type: object - properties: - PermissionFlags: - $ref: '#/definitions/crosschainPermissionFlags' crosschainQueryGetTSSResponse: type: object properties: @@ -50578,12 +50514,46 @@ definitions: items: type: object $ref: '#/definitions/observerCoreParams' + observerKeygen: + type: object + properties: + status: + $ref: '#/definitions/observerKeygenStatus' + title: 0--to generate key; 1--generated; 2--error + granteePubkeys: + type: array + items: + type: string + blockNumber: + type: string + format: int64 + title: the blocknum that the key needs to be generated + observerKeygenStatus: + type: string + enum: + - PendingKeygen + - KeyGenSuccess + - KeyGenFailed + default: PendingKeygen + observerLastObserverCount: + type: object + properties: + count: + type: string + format: uint64 + last_change_height: + type: string + format: int64 observerMsgAddBlameVoteResponse: type: object observerMsgAddObserverResponse: type: object observerMsgUpdateCoreParamsResponse: type: object + observerMsgUpdateKeygenResponse: + type: object + observerMsgUpdatePermissionFlagsResponse: + type: object observerNode: type: object properties: @@ -50595,6 +50565,27 @@ definitions: blame_signature: type: string format: byte + observerNodeAccount: + type: object + properties: + operator: + type: string + granteeAddress: + type: string + granteePubkey: + $ref: '#/definitions/commonPubKeySet' + nodeStatus: + $ref: '#/definitions/observerNodeStatus' + observerNodeStatus: + type: string + enum: + - Unknown + - Whitelisted + - Standby + - Ready + - Active + - Disabled + default: Unknown observerObservationType: type: string enum: @@ -50626,6 +50617,11 @@ definitions: type: string is_supported: type: boolean + observerPermissionFlags: + type: object + properties: + isInboundEnabled: + type: boolean observerPolicy_Type: type: string enum: @@ -50644,6 +50640,16 @@ definitions: items: type: object $ref: '#/definitions/observerBlame' + observerQueryAllNodeAccountResponse: + type: object + properties: + NodeAccount: + type: array + items: + type: object + $ref: '#/definitions/observerNodeAccount' + pagination: + $ref: '#/definitions/v1beta1PageResponse' observerQueryAllObserverMappersResponse: type: object properties: @@ -50681,6 +50687,21 @@ definitions: properties: core_params: $ref: '#/definitions/observerCoreParamsList' + observerQueryGetKeygenResponse: + type: object + properties: + Keygen: + $ref: '#/definitions/observerKeygen' + observerQueryGetNodeAccountResponse: + type: object + properties: + NodeAccount: + $ref: '#/definitions/observerNodeAccount' + observerQueryGetPermissionFlagsResponse: + type: object + properties: + PermissionFlags: + $ref: '#/definitions/observerPermissionFlags' observerQueryObserversByChainResponse: type: object properties: @@ -50688,6 +50709,11 @@ definitions: type: array items: type: string + observerQueryShowObserverCountResponse: + type: object + properties: + last_observer_count: + $ref: '#/definitions/observerLastObserverCount' observerQuerySupportedChainsResponse: type: object properties: diff --git a/go.mod b/go.mod index 295ecad1e8..e4d7c5535b 100644 --- a/go.mod +++ b/go.mod @@ -21,8 +21,8 @@ require ( github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect github.com/tendermint/tendermint v0.34.24 github.com/tendermint/tm-db v0.6.7 - google.golang.org/genproto v0.0.0-20221207170731-23e4bf6bdc37 - google.golang.org/grpc v1.52.0 + google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e // indirect + google.golang.org/grpc v1.55.0 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c ) @@ -42,6 +42,7 @@ require ( github.com/rakyll/statik v0.1.7 github.com/zeta-chain/protocol-contracts v0.0.0-20230511074447-d04544b98b05 gitlab.com/thorchain/tss/go-tss v0.0.0-00010101000000-000000000000 + google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc gopkg.in/yaml.v2 v2.4.0 ) @@ -64,14 +65,15 @@ require ( github.com/pelletier/go-toml v1.9.5 // indirect github.com/prometheus/tsdb v0.7.1 // indirect github.com/rjeczalik/notify v0.9.1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect ) require ( - cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect - cloud.google.com/go/iam v0.8.0 // indirect - cloud.google.com/go/storage v1.27.0 // indirect + cloud.google.com/go v0.110.0 // indirect + cloud.google.com/go/compute v1.19.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.13.0 // indirect + cloud.google.com/go/storage v1.28.1 // indirect filippo.io/edwards25519 v1.0.0-rc.1 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect @@ -139,8 +141,8 @@ require ( github.com/google/gopacket v1.1.19 // indirect github.com/google/orderedcode v0.0.1 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect - github.com/googleapis/gax-go/v2 v2.7.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect + github.com/googleapis/gax-go/v2 v2.7.1 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect @@ -272,18 +274,18 @@ require ( go.uber.org/zap v1.23.0 // indirect golang.org/x/crypto v0.3.0 // indirect golang.org/x/exp v0.0.0-20230206171751-46f607a40771 // indirect - golang.org/x/mod v0.6.0 // indirect - golang.org/x/net v0.5.0 - golang.org/x/oauth2 v0.3.0 // indirect + golang.org/x/mod v0.8.0 // indirect + golang.org/x/net v0.10.0 + golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.1.0 // indirect - golang.org/x/sys v0.5.0 // indirect - golang.org/x/term v0.4.0 // indirect - golang.org/x/text v0.7.0 // indirect - golang.org/x/tools v0.2.0 // indirect + golang.org/x/sys v0.8.0 // indirect + golang.org/x/term v0.8.0 // indirect + golang.org/x/text v0.9.0 // indirect + golang.org/x/tools v0.6.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.103.0 // indirect + google.golang.org/api v0.114.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 // indirect + google.golang.org/protobuf v1.30.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect diff --git a/go.sum b/go.sum index 110c42679f..b8684280fc 100644 --- a/go.sum +++ b/go.sum @@ -21,8 +21,8 @@ cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHOb cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= +cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= +cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -30,16 +30,16 @@ cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUM cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ= +cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= -cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= -cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= -cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= +cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= +cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= +cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -50,8 +50,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -cloud.google.com/go/storage v1.27.0 h1:YOO045NZI9RKfCj1c5A/ZtuuENUc8OAW+gHdGnDgyMQ= -cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storage v1.28.1 h1:F5QDG5ChchaAVQhINh24U99OWHURqrW8OmQcGKXcbgI= +cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y= collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w= cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE= @@ -581,7 +581,7 @@ github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPg github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.2.1 h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1VLQ= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -601,14 +601,14 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= +github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= -github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= +github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6cvPr8A= +github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -1601,8 +1601,8 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= +golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1670,8 +1670,8 @@ golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1683,8 +1683,8 @@ golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.3.0 h1:6l90koy8/LaBLmLu8jpHeHexzMwEita0zFfYlggy2F8= -golang.org/x/oauth2 v0.3.0/go.mod h1:rQrIauxkUhJ6CuwEXwymO2/eh4xz2ZWF1nBkcxS+tGk= +golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= +golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1799,13 +1799,13 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220817070843-5a390386f1f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg= -golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1815,8 +1815,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1894,8 +1894,8 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1932,8 +1932,8 @@ google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz513 google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.114.0 h1:1xQPji6cO2E2vLiI+C/XiFAnsn1WV3mjaEwGLhi3grE= +google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1994,8 +1994,12 @@ google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20221207170731-23e4bf6bdc37 h1:jmIfw8+gSvXcZSgaFAGyInDXeWzUhvYH57G/5GKMn70= -google.golang.org/genproto v0.0.0-20221207170731-23e4bf6bdc37/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e h1:Ao9GzfUMPH3zjVfzXG5rlWlk+Q8MXWKwWpwVQE1MXfw= +google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:zqTuNwFlFRsw5zIts5VnzLQxSRqh+CGOTVMlYbY0Eyk= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1:kVKPf/IiYSBWEWtkIn6wZXwWGCnLKcC8oWfZvXjsGnM= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= @@ -2024,8 +2028,8 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.52.0 h1:kd48UiU7EHsV4rnLyOJRuP/Il/UHE7gdDAQ+SZI7nZk= -google.golang.org/grpc v1.52.0/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY= +google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= +google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -2038,8 +2042,8 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 h1:KR8+MyP7/qOlV+8Af01LtjL04bu7on42eVsxT4EyBQk= -google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/proto/common/common.proto b/proto/common/common.proto index b20e51063b..ad5e0e1385 100644 --- a/proto/common/common.proto +++ b/proto/common/common.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package common; option go_package = "github.com/zeta-chain/zetacore/common"; + //option (gogoproto.goproto_stringer_all) = false; //option (gogoproto.stringer_all) = false; //option (gogoproto.goproto_getters_all) = false; diff --git a/proto/crosschain/events.proto b/proto/crosschain/events.proto index 6e7cf149da..75883a0a1f 100644 --- a/proto/crosschain/events.proto +++ b/proto/crosschain/events.proto @@ -22,12 +22,6 @@ message EventInboundFinalized { } -message EventKeygenBlockUpdated { - string msg_type_url = 1; - string keygen_block = 2; - string keygen_pubkeys = 3; -} - message EventZrcWithdrawCreated { string msg_type_url = 1; diff --git a/proto/crosschain/genesis.proto b/proto/crosschain/genesis.proto index fe7f9526ce..93b8bc763d 100644 --- a/proto/crosschain/genesis.proto +++ b/proto/crosschain/genesis.proto @@ -3,16 +3,13 @@ package zetachain.zetacore.crosschain; import "crosschain/out_tx_tracker.proto"; import "crosschain/in_tx_hash_to_cctx.proto"; -import "crosschain/permission_flags.proto"; // this line is used by starport scaffolding # genesis/proto/import import "gogoproto/gogo.proto"; -import "crosschain/keygen.proto"; import "crosschain/tss.proto"; import "crosschain/gas_price.proto"; import "crosschain/chain_nonces.proto"; import "crosschain/last_block_height.proto"; import "crosschain/cross_chain_tx.proto"; -import "crosschain/node_account.proto"; import "crosschain/params.proto"; option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types"; @@ -20,14 +17,13 @@ option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types"; message GenesisState { Params params = 1 [(gogoproto.nullable) = false]; repeated OutTxTracker outTxTrackerList = 2 [(gogoproto.nullable) = false]; - Keygen keygen = 3; TSS tss = 4; repeated GasPrice gasPriceList = 5; repeated ChainNonces chainNoncesList = 6; repeated CrossChainTx CrossChainTxs = 7; - repeated NodeAccount nodeAccountList = 8; - repeated LastBlockHeight lastBlockHeightList = 9; - repeated InTxHashToCctx inTxHashToCctxList = 10 [(gogoproto.nullable) = false]; - PermissionFlags permissionFlags = 11; + + repeated LastBlockHeight lastBlockHeightList = 8; + repeated InTxHashToCctx inTxHashToCctxList = 9 [(gogoproto.nullable) = false]; + // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/crosschain/permission_flags.proto b/proto/crosschain/permission_flags.proto deleted file mode 100644 index 42d79f5a36..0000000000 --- a/proto/crosschain/permission_flags.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; -package zetachain.zetacore.crosschain; - -option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types"; - -message PermissionFlags { - bool isInboundEnabled = 1; -} diff --git a/proto/crosschain/query.proto b/proto/crosschain/query.proto index f73f8ed140..1a5b91c9a3 100644 --- a/proto/crosschain/query.proto +++ b/proto/crosschain/query.proto @@ -5,16 +5,13 @@ import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "crosschain/out_tx_tracker.proto"; import "crosschain/in_tx_hash_to_cctx.proto"; -import "crosschain/permission_flags.proto"; // this line is used by starport scaffolding # 1 import "gogoproto/gogo.proto"; -import "crosschain/keygen.proto"; import "crosschain/tss.proto"; import "crosschain/gas_price.proto"; import "crosschain/chain_nonces.proto"; import "crosschain/last_block_height.proto"; import "crosschain/cross_chain_tx.proto"; -import "crosschain/node_account.proto"; import "crosschain/params.proto"; import "crosschain/nonce_to_cctx.proto"; @@ -51,21 +48,13 @@ service Query { option (google.api.http).get = "/zeta-chain/crosschain/inTxHashToCctx"; } -// Queries a PermissionFlags by index. - rpc PermissionFlags(QueryGetPermissionFlagsRequest) returns (QueryGetPermissionFlagsResponse) { - option (google.api.http).get = "/zeta-chain/zetacore/crosschain/permission_flags"; - } // Queries a list of GetTssAddress items. rpc GetTssAddress(QueryGetTssAddressRequest) returns (QueryGetTssAddressResponse) { - option (google.api.http).get = "/zeta-chain/zetacore/crosschain/get_tss_address"; + option (google.api.http).get = "/zeta-chain/crosschain/get_tss_address"; } // this line is used by starport scaffolding # 2 - // Queries a keygen by index. - rpc Keygen(QueryGetKeygenRequest) returns (QueryGetKeygenResponse) { - option (google.api.http).get = "/zeta-chain/crosschain/keygen"; - } // Queries a tSS by index. @@ -131,15 +120,7 @@ service Query { rpc CctxAllPending(QueryAllCctxPendingRequest) returns (QueryAllCctxPendingResponse) { option (google.api.http).get = "/zeta-chain/crosschain/cctxPending"; } - // Queries a nodeAccount by index. - rpc NodeAccount(QueryGetNodeAccountRequest) returns (QueryGetNodeAccountResponse) { - option (google.api.http).get = "/zeta-chain/crosschain/nodeAccount/{index}"; - } - // Queries a list of nodeAccount items. - rpc NodeAccountAll(QueryAllNodeAccountRequest) returns (QueryAllNodeAccountResponse) { - option (google.api.http).get = "/zeta-chain/crosschain/nodeAccount"; - } // Queries a list of lastMetaHeight items. rpc LastZetaHeight(QueryLastZetaHeightRequest) returns (QueryLastZetaHeightResponse) { @@ -205,11 +186,7 @@ message QueryAllInTxHashToCctxResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetPermissionFlagsRequest {} -message QueryGetPermissionFlagsResponse { - PermissionFlags PermissionFlags = 1 [(gogoproto.nullable) = false]; -} message QueryGetTssAddressRequest { } @@ -219,11 +196,6 @@ message QueryGetTssAddressResponse { } // this line is used by starport scaffolding # 3 -message QueryGetKeygenRequest {} - -message QueryGetKeygenResponse { - Keygen Keygen = 1; -} message QueryGetTSSRequest {} @@ -318,22 +290,7 @@ message QueryAllCctxPendingResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetNodeAccountRequest { - string index = 1; -} - -message QueryGetNodeAccountResponse { - NodeAccount NodeAccount = 1; -} - -message QueryAllNodeAccountRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} -message QueryAllNodeAccountResponse { - repeated NodeAccount NodeAccount = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} message QueryLastZetaHeightRequest { } diff --git a/proto/crosschain/tx.proto b/proto/crosschain/tx.proto index 33564f38e7..c718cbf44c 100644 --- a/proto/crosschain/tx.proto +++ b/proto/crosschain/tx.proto @@ -1,9 +1,7 @@ syntax = "proto3"; package zetachain.zetacore.crosschain; -import "crosschain/permission_flags.proto"; // this line is used by starport scaffolding # proto/tx/import -import "crosschain/keygen.proto"; import "common/common.proto"; import "gogoproto/gogo.proto"; @@ -18,9 +16,6 @@ service Msg { rpc NonceVoter(MsgNonceVoter) returns (MsgNonceVoterResponse); rpc VoteOnObservedOutboundTx(MsgVoteOnObservedOutboundTx) returns (MsgVoteOnObservedOutboundTxResponse); rpc VoteOnObservedInboundTx(MsgVoteOnObservedInboundTx) returns (MsgVoteOnObservedInboundTxResponse); - rpc SetNodeKeys(MsgSetNodeKeys) returns (MsgSetNodeKeysResponse); - rpc UpdatePermissionFlags(MsgUpdatePermissionFlags) returns (MsgUpdatePermissionFlagsResponse); - rpc UpdateKeygen(MsgUpdateKeygen) returns (MsgUpdateKeygenResponse); // this line is used by starport scaffolding # proto/tx/rpc } @@ -45,19 +40,8 @@ message MsgRemoveFromOutTxTrackerResponse { } -message MsgUpdatePermissionFlags { - string creator = 1; - bool isInboundEnabled = 3; -} -message MsgUpdatePermissionFlagsResponse {} -message MsgUpdateKeygen { - string creator = 1; - int64 block = 2; -} -message MsgUpdateKeygenResponse { -} // this line is used by starport scaffolding # proto/tx/message message MsgCreateTSSVoter { diff --git a/proto/observer/events.proto b/proto/observer/events.proto index 6d8671baa5..12f864dafd 100644 --- a/proto/observer/events.proto +++ b/proto/observer/events.proto @@ -13,3 +13,9 @@ message EventBallotCreated { string observation_chain = 5; string ballot_type = 6; } + +message EventKeygenBlockUpdated { + string msg_type_url = 1; + string keygen_block = 2; + string keygen_pubkeys = 3; +} diff --git a/proto/observer/genesis.proto b/proto/observer/genesis.proto index 7d68d19176..3947138356 100644 --- a/proto/observer/genesis.proto +++ b/proto/observer/genesis.proto @@ -5,11 +5,17 @@ import "gogoproto/gogo.proto"; import "observer/observer.proto"; import "observer/ballot.proto"; import "observer/params.proto"; +import "observer/node_account.proto"; +import "observer/permission_flags.proto"; +import "observer/keygen.proto"; option go_package = "github.com/zeta-chain/zetacore/x/observer/types"; message GenesisState { repeated Ballot ballots =1; repeated ObserverMapper observers = 2; - Params params = 3; + repeated NodeAccount nodeAccountList = 3; + PermissionFlags permissionFlags = 4; + Params params = 5; + Keygen keygen = 6; } \ No newline at end of file diff --git a/proto/crosschain/keygen.proto b/proto/observer/keygen.proto similarity index 77% rename from proto/crosschain/keygen.proto rename to proto/observer/keygen.proto index 98438d9165..adf08ccfb9 100644 --- a/proto/crosschain/keygen.proto +++ b/proto/observer/keygen.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package zetachain.zetacore.crosschain; +package zetachain.zetacore.observer; import "gogoproto/gogo.proto"; -option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types"; +option go_package = "github.com/zeta-chain/zetacore/x/observer/types"; enum KeygenStatus { option (gogoproto.goproto_enum_stringer) = true; diff --git a/proto/crosschain/node_account.proto b/proto/observer/node_account.proto similarity index 77% rename from proto/crosschain/node_account.proto rename to proto/observer/node_account.proto index caced3b7ec..fa260871e2 100644 --- a/proto/crosschain/node_account.proto +++ b/proto/observer/node_account.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package zetachain.zetacore.crosschain; +package zetachain.zetacore.observer; -option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types"; +option go_package = "github.com/zeta-chain/zetacore/x/observer/types"; import "gogoproto/gogo.proto"; import "common/common.proto"; diff --git a/proto/observer/observer.proto b/proto/observer/observer.proto index f5967fee71..84a529ced1 100644 --- a/proto/observer/observer.proto +++ b/proto/observer/observer.proto @@ -19,4 +19,9 @@ message ObserverMapper { string index = 1; common.Chain observer_chain =2 ; repeated string observer_list =4; +} + +message LastObserverCount { + uint64 count = 1; + int64 last_change_height = 2; } \ No newline at end of file diff --git a/proto/observer/permission_flags.proto b/proto/observer/permission_flags.proto new file mode 100644 index 0000000000..4454ebdc59 --- /dev/null +++ b/proto/observer/permission_flags.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; +package zetachain.zetacore.observer; + +option go_package = "github.com/zeta-chain/zetacore/x/observer/types"; + +message PermissionFlags { + bool isInboundEnabled = 1; +} diff --git a/proto/observer/query.proto b/proto/observer/query.proto index c030f5ddbe..777c6c4054 100644 --- a/proto/observer/query.proto +++ b/proto/observer/query.proto @@ -8,8 +8,12 @@ import "gogoproto/gogo.proto"; import "observer/params.proto"; import "observer/observer.proto"; import "observer/ballot.proto"; +import "observer/node_account.proto"; import "observer/blame.proto"; import "common/common.proto"; +import "observer/permission_flags.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "observer/keygen.proto"; option go_package = "github.com/zeta-chain/zetacore/x/observer/types"; @@ -38,12 +42,35 @@ service Query { // Queries a list of GetClientParamsForChain items. rpc GetCoreParamsForChain(QueryGetCoreParamsForChainRequest) returns (QueryGetCoreParamsForChainResponse) { - option (google.api.http).get = "/zeta-chain/zetacore/observer/get_client_params_for_chain/{chainID}"; + option (google.api.http).get = "/zeta-chain/observer/get_client_params_for_chain/{chainID}"; } // Queries a list of GetCoreParams items. rpc GetCoreParams(QueryGetCoreParamsRequest) returns (QueryGetCoreParamsResponse) { - option (google.api.http).get = "/zeta-chain/zetacore/observer/get_core_params"; + option (google.api.http).get = "/zeta-chain/observer/get_core_params"; + } + + // Queries a nodeAccount by index. + rpc NodeAccount(QueryGetNodeAccountRequest) returns (QueryGetNodeAccountResponse) { + option (google.api.http).get = "/zeta-chain/observer/nodeAccount/{index}"; + } + + // Queries a list of nodeAccount items. + rpc NodeAccountAll(QueryAllNodeAccountRequest) returns (QueryAllNodeAccountResponse) { + option (google.api.http).get = "/zeta-chain/observer/nodeAccount"; + } + rpc PermissionFlags(QueryGetPermissionFlagsRequest) returns (QueryGetPermissionFlagsResponse) { + option (google.api.http).get = "/zeta-chain/observer/permission_flags"; + } + // Queries a keygen by index. + rpc Keygen(QueryGetKeygenRequest) returns (QueryGetKeygenResponse) { + option (google.api.http).get = "/zeta-chain/observer/keygen"; + } + + + // Queries a list of ShowObserverCount items. + rpc ShowObserverCount(QueryShowObserverCountRequest) returns (QueryShowObserverCountResponse) { + option (google.api.http).get = "/zeta-chain/zetacore/observer/show_observer_count"; } // Queries a list of VoterByIdentifier items. @@ -120,6 +147,43 @@ message QueryGetCoreParamsResponse { CoreParamsList core_params = 1; } +message QueryGetNodeAccountRequest { + string index = 1; +} + +message QueryGetNodeAccountResponse { + NodeAccount NodeAccount = 1; +} + +message QueryAllNodeAccountRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +message QueryAllNodeAccountResponse { + repeated NodeAccount NodeAccount = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryGetPermissionFlagsRequest {} + +message QueryGetPermissionFlagsResponse { + PermissionFlags PermissionFlags = 1 [(gogoproto.nullable) = false]; +} + +message QueryGetKeygenRequest {} + +message QueryGetKeygenResponse { + Keygen Keygen = 1; +} + + +message QueryShowObserverCountRequest { +} + +message QueryShowObserverCountResponse { + LastObserverCount last_observer_count = 1; +} + message QueryBlameByIdentifierRequest { string blame_identifier = 1; } diff --git a/proto/observer/tx.proto b/proto/observer/tx.proto index 8d485beac1..1db69a0e99 100644 --- a/proto/observer/tx.proto +++ b/proto/observer/tx.proto @@ -18,6 +18,8 @@ service Msg { rpc AddObserver(MsgAddObserver) returns (MsgAddObserverResponse); rpc UpdateCoreParams(MsgUpdateCoreParams) returns (MsgUpdateCoreParamsResponse); rpc AddBlameVote(MsgAddBlameVote) returns (MsgAddBlameVoteResponse); + rpc UpdatePermissionFlags(MsgUpdatePermissionFlags) returns (MsgUpdatePermissionFlagsResponse); + rpc UpdateKeygen(MsgUpdateKeygen) returns (MsgUpdateKeygenResponse); // this line is used by starport scaffolding # proto/tx/rpc } @@ -46,5 +48,18 @@ message MsgAddBlameVote { message MsgAddBlameVoteResponse { } +message MsgUpdatePermissionFlags { + string creator = 1; + bool isInboundEnabled = 3; +} +message MsgUpdatePermissionFlagsResponse {} + +message MsgUpdateKeygen { + string creator = 1; + int64 block = 2; +} + +message MsgUpdateKeygenResponse { +} // this line is used by starport scaffolding # proto/tx/message \ No newline at end of file diff --git a/testutil/keeper/zetacore.go b/testutil/keeper/zetacore.go index 6b7a4f50e1..480104ef27 100644 --- a/testutil/keeper/zetacore.go +++ b/testutil/keeper/zetacore.go @@ -3,6 +3,7 @@ package keeper import ( authkeeper2 "github.com/cosmos/cosmos-sdk/x/auth/keeper" bankkeeper2 "github.com/cosmos/cosmos-sdk/x/bank/keeper" + "github.com/zeta-chain/zetacore/x/crosschain/keeper" "testing" "github.com/cosmos/cosmos-sdk/codec" @@ -15,7 +16,6 @@ import ( "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmdb "github.com/tendermint/tm-db" - "github.com/zeta-chain/zetacore/x/crosschain/keeper" "github.com/zeta-chain/zetacore/x/crosschain/types" fungibleKeeper "github.com/zeta-chain/zetacore/x/fungible/keeper" zetaobserverKeeper "github.com/zeta-chain/zetacore/x/observer/keeper" diff --git a/testutil/network/genesis_state.go b/testutil/network/genesis_state.go index 1493d3f130..32cd55cdc7 100644 --- a/testutil/network/genesis_state.go +++ b/testutil/network/genesis_state.go @@ -30,20 +30,14 @@ func SetupZetaGenesisState(t *testing.T, genesisState map[string]json.RawMessage // Cross-chain genesis state var crossChainGenesis types.GenesisState assert.NoError(t, codec.UnmarshalJSON(genesisState[types.ModuleName], &crossChainGenesis)) - nodeAccountList := make([]*types.NodeAccount, len(observerList)) + nodeAccountList := make([]*observerTypes.NodeAccount, len(observerList)) for i, operator := range observerList { - nodeAccountList[i] = &types.NodeAccount{ + nodeAccountList[i] = &observerTypes.NodeAccount{ Operator: operator, - NodeStatus: types.NodeStatus_Active, + NodeStatus: observerTypes.NodeStatus_Active, } } - crossChainGenesis.NodeAccountList = nodeAccountList - crossChainGenesis.Keygen = &types.Keygen{ - Status: types.KeygenStatus_PendingKeygen, - GranteePubkeys: observerList, - BlockNumber: 5, - } crossChainGenesis.Params.Enabled = true crossChainGenesisBz, err := codec.MarshalJSON(&crossChainGenesis) assert.NoError(t, err) @@ -74,6 +68,12 @@ func SetupZetaGenesisState(t *testing.T, genesisState map[string]json.RawMessage } } observerGenesis.Observers = observerMapper + observerGenesis.NodeAccountList = nodeAccountList + observerGenesis.Keygen = &observerTypes.Keygen{ + Status: observerTypes.KeygenStatus_PendingKeygen, + GranteePubkeys: observerList, + BlockNumber: 5, + } observerGenesisBz, err := codec.MarshalJSON(&observerGenesis) assert.NoError(t, err) diff --git a/x/crosschain/client/cli/cli_node_account.go b/x/crosschain/client/cli/cli_node_account.go deleted file mode 100644 index e8ec123a3c..0000000000 --- a/x/crosschain/client/cli/cli_node_account.go +++ /dev/null @@ -1,121 +0,0 @@ -package cli - -import ( - "context" - "fmt" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/zeta-chain/zetacore/common" - "github.com/zeta-chain/zetacore/common/cosmos" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/zeta-chain/zetacore/x/crosschain/types" -) - -func CmdListNodeAccount() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-node-account", - Short: "list all NodeAccount", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllNodeAccountRequest{ - Pagination: pageReq, - } - - res, err := queryClient.NodeAccountAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowNodeAccount() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-node-account [index]", - Short: "shows a NodeAccount", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetNodeAccountRequest{ - Index: args[0], - } - - res, err := queryClient.NodeAccount(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -// Transaction CLI ///////////////////////// - -func CmdSetNodeKeys() *cobra.Command { - cmd := &cobra.Command{ - Use: "set-node-keys [secp256k1] [ed25519] [validatorConsensusPubkey]", - Short: "Broadcast message SetNodeKeys", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - secp256k1Key, err := common.NewPubKey(args[0]) - if err != nil { - return fmt.Errorf("fail to parse secp256k1 pub key ,err:%w", err) - } - ed25519Key, err := common.NewPubKey(args[1]) - //TODO: re-enable the check. THis is for test when ed25519 key is not supported - if err != nil { - //return fmt.Errorf("fail to parse ed25519 pub key ,err:%w", err) - fmt.Printf("fail to parse ed25519 pub key ,err:%s", err) - } - pk := common.NewPubKeySet(secp256k1Key, ed25519Key) - validatorConsPubKey, err := cosmos.GetPubKeyFromBech32(cosmos.Bech32PubKeyTypeConsPub, args[2]) - if err != nil { - return fmt.Errorf("fail to parse validator consensus public key: %w", err) - } - validatorConsPubKeyStr, err := cosmos.Bech32ifyPubKey(cosmos.Bech32PubKeyTypeConsPub, validatorConsPubKey) - if err != nil { - return fmt.Errorf("fail to convert public key to string: %w", err) - } - - msg := types.NewMsgSetNodeKeys(clientCtx.GetFromAddress().String(), pk, validatorConsPubKeyStr) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/crosschain/client/cli/query.go b/x/crosschain/client/cli/query.go index cfa3207f08..5f896a9f20 100644 --- a/x/crosschain/client/cli/query.go +++ b/x/crosschain/client/cli/query.go @@ -2,6 +2,8 @@ package cli import ( "fmt" + "github.com/zeta-chain/zetacore/x/observer/client/cli" + // "strings" "github.com/spf13/cobra" @@ -26,7 +28,7 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdListOutTxTracker()) cmd.AddCommand(CmdShowOutTxTracker()) - cmd.AddCommand(CmdShowKeygen()) + cmd.AddCommand(cli.CmdShowKeygen()) cmd.AddCommand(CmdShowTSS()) cmd.AddCommand(CmdListGasPrice()) cmd.AddCommand(CmdShowGasPrice()) @@ -34,13 +36,11 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdShowChainNonces()) cmd.AddCommand(CmdListSend()) cmd.AddCommand(CmdShowSend()) - cmd.AddCommand(CmdListNodeAccount()) - cmd.AddCommand(CmdShowNodeAccount()) cmd.AddCommand(CmdLastZetaHeight()) cmd.AddCommand(CmdListInTxHashToCctx()) cmd.AddCommand(CmdShowInTxHashToCctx()) cmd.AddCommand(CmdQueryParams()) - cmd.AddCommand(CmdShowPermissionFlags()) + cmd.AddCommand(cli.CmdShowPermissionFlags()) cmd.AddCommand(CmdGetTssAddress()) // this line is used by starport scaffolding # 1 diff --git a/x/crosschain/client/cli/tx.go b/x/crosschain/client/cli/tx.go index b71f8414e3..bd885dadf5 100644 --- a/x/crosschain/client/cli/tx.go +++ b/x/crosschain/client/cli/tx.go @@ -2,6 +2,7 @@ package cli import ( "fmt" + "github.com/zeta-chain/zetacore/x/observer/client/cli" "time" "github.com/spf13/cobra" @@ -35,10 +36,9 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdNonceVoter()) cmd.AddCommand(CmdCCTXOutboundVoter()) cmd.AddCommand(CmdCCTXInboundVoter()) - cmd.AddCommand(CmdSetNodeKeys()) cmd.AddCommand(CmdRemoveFromWatchList()) - cmd.AddCommand(CmdUpdatePermissionFlags()) - cmd.AddCommand(CmdUpdateKeygen()) + cmd.AddCommand(cli.CmdUpdatePermissionFlags()) + cmd.AddCommand(cli.CmdUpdateKeygen()) // this line is used by starport scaffolding # 1 return cmd diff --git a/x/crosschain/client/querytests/cctx.go b/x/crosschain/client/querytests/cctx.go index 811436f5f5..13f5287dc5 100644 --- a/x/crosschain/client/querytests/cctx.go +++ b/x/crosschain/client/querytests/cctx.go @@ -13,7 +13,7 @@ import ( func (s *CliTestSuite) TestListCCTX() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.CrossChainTxs + objs := s.crossChainState.CrossChainTxs request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), @@ -72,7 +72,7 @@ func (s *CliTestSuite) TestListCCTX() { func (s *CliTestSuite) TestShowSend() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.CrossChainTxs + objs := s.crossChainState.CrossChainTxs common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } diff --git a/x/crosschain/client/querytests/chain_nonces.go b/x/crosschain/client/querytests/chain_nonces.go index ea16d535d4..c1de87e461 100644 --- a/x/crosschain/client/querytests/chain_nonces.go +++ b/x/crosschain/client/querytests/chain_nonces.go @@ -13,7 +13,7 @@ import ( func (s *CliTestSuite) TestShowChainNonces() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.ChainNoncesList + objs := s.crossChainState.ChainNoncesList common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } @@ -59,7 +59,7 @@ func (s *CliTestSuite) TestShowChainNonces() { func (s *CliTestSuite) TestListChainNonces() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.ChainNoncesList + objs := s.crossChainState.ChainNoncesList request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), diff --git a/x/crosschain/client/querytests/gas_price.go b/x/crosschain/client/querytests/gas_price.go index a2537ae56d..ce7df5e1df 100644 --- a/x/crosschain/client/querytests/gas_price.go +++ b/x/crosschain/client/querytests/gas_price.go @@ -13,7 +13,7 @@ import ( func (s *CliTestSuite) TestShowGasPrice() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.GasPriceList + objs := s.crossChainState.GasPriceList common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } @@ -59,7 +59,7 @@ func (s *CliTestSuite) TestShowGasPrice() { func (s *CliTestSuite) TestListGasPrice() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.GasPriceList + objs := s.crossChainState.GasPriceList request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), diff --git a/x/crosschain/client/querytests/intx_hash.go b/x/crosschain/client/querytests/intx_hash.go index 69d5e7c0cc..1c5b89a8d4 100644 --- a/x/crosschain/client/querytests/intx_hash.go +++ b/x/crosschain/client/querytests/intx_hash.go @@ -16,7 +16,7 @@ import ( func (s *CliTestSuite) TestShowInTxHashToCctx() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.InTxHashToCctxList + objs := s.crossChainState.InTxHashToCctxList common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } @@ -68,8 +68,8 @@ func (s *CliTestSuite) TestShowInTxHashToCctx() { func (s *CliTestSuite) TestListInTxHashToCctx() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.InTxHashToCctxList - cctxCount := len(s.state.CrossChainTxs) + objs := s.crossChainState.InTxHashToCctxList + cctxCount := len(s.crossChainState.CrossChainTxs) request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), diff --git a/x/crosschain/client/querytests/last_block_height.go b/x/crosschain/client/querytests/last_block_height.go index 30b071a408..d42924f299 100644 --- a/x/crosschain/client/querytests/last_block_height.go +++ b/x/crosschain/client/querytests/last_block_height.go @@ -13,7 +13,7 @@ import ( func (s *CliTestSuite) TestShowLastBlockHeight() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.LastBlockHeightList + objs := s.crossChainState.LastBlockHeightList common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } @@ -59,7 +59,7 @@ func (s *CliTestSuite) TestShowLastBlockHeight() { func (s *CliTestSuite) TestListLastBlockHeight() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.LastBlockHeightList + objs := s.crossChainState.LastBlockHeightList request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), diff --git a/x/crosschain/client/querytests/out_tx_tracker.go b/x/crosschain/client/querytests/out_tx_tracker.go index 240fefef36..14c89405d2 100644 --- a/x/crosschain/client/querytests/out_tx_tracker.go +++ b/x/crosschain/client/querytests/out_tx_tracker.go @@ -12,7 +12,7 @@ import ( func (s *CliTestSuite) TestListOutTxTracker() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.OutTxTrackerList + objs := s.crossChainState.OutTxTrackerList request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), diff --git a/x/crosschain/client/querytests/suite.go b/x/crosschain/client/querytests/suite.go index 5b7d5f12b4..996ba25d22 100644 --- a/x/crosschain/client/querytests/suite.go +++ b/x/crosschain/client/querytests/suite.go @@ -11,15 +11,17 @@ import ( "github.com/zeta-chain/zetacore/testutil/network" "github.com/zeta-chain/zetacore/testutil/nullify" "github.com/zeta-chain/zetacore/x/crosschain/types" + observerTypes "github.com/zeta-chain/zetacore/x/observer/types" "strconv" ) type CliTestSuite struct { suite.Suite - cfg network.Config - network *network.Network - state *types.GenesisState + cfg network.Config + network *network.Network + crossChainState *types.GenesisState + observerState *observerTypes.GenesisState } func NewCLITestSuite(cfg network.Config) *CliTestSuite { @@ -46,6 +48,7 @@ func (s *CliTestSuite) SetupSuite() { } s.cfg.GenesisState = network.SetupZetaGenesisState(s.T(), s.cfg.GenesisState, s.cfg.Codec, observerList) s.AddCrossChainData(2) + s.AddObserverData(2) net, err := network.New(s.T(), app.NodeDir, s.cfg) s.Assert().NoError(err) s.network = net @@ -58,7 +61,22 @@ func (s *CliTestSuite) TearDownSuite() { s.T().Log("tearing down genesis test suite") s.network.Cleanup() } +func (s *CliTestSuite) AddObserverData(n int) { + state := observerTypes.GenesisState{} + s.Require().NoError(s.cfg.Codec.UnmarshalJSON(s.cfg.GenesisState[observerTypes.ModuleName], &state)) + for i := 0; i < n; i++ { + state.NodeAccountList = append(state.NodeAccountList, &observerTypes.NodeAccount{Operator: strconv.Itoa(i), GranteeAddress: "signer"}) + } + state.Keygen = &observerTypes.Keygen{BlockNumber: 10, GranteePubkeys: []string{}} + permissionFlags := &observerTypes.PermissionFlags{} + nullify.Fill(&permissionFlags) + state.PermissionFlags = permissionFlags + buf, err := s.cfg.Codec.MarshalJSON(&state) + s.Require().NoError(err) + s.cfg.GenesisState[observerTypes.ModuleName] = buf + s.observerState = &state +} func (s *CliTestSuite) AddCrossChainData(n int) { state := types.GenesisState{} s.Require().NoError(s.cfg.Codec.UnmarshalJSON(s.cfg.GenesisState[types.ModuleName], &state)) @@ -86,7 +104,7 @@ func (s *CliTestSuite) AddCrossChainData(n int) { for i := 0; i < n; i++ { state.LastBlockHeightList = append(state.LastBlockHeightList, &types.LastBlockHeight{Creator: "ANY", Index: strconv.Itoa(i)}) } - state.Keygen = &types.Keygen{BlockNumber: 10, GranteePubkeys: []string{}} + state.Tss = &types.TSS{ TssPubkey: "tssPubkey", TssParticipantList: []string{"tssParticipantList"}, @@ -94,9 +112,6 @@ func (s *CliTestSuite) AddCrossChainData(n int) { FinalizedZetaHeight: 1, KeyGenZetaHeight: 1, } - for i := 0; i < n; i++ { - state.NodeAccountList = append(state.NodeAccountList, &types.NodeAccount{Operator: strconv.Itoa(i), GranteeAddress: "signer"}) - } for i := 0; i < n; i++ { outTxTracker := types.OutTxTracker{ Index: fmt.Sprintf("%d-%d", i, i), @@ -114,11 +129,9 @@ func (s *CliTestSuite) AddCrossChainData(n int) { nullify.Fill(&inTxHashToCctx) state.InTxHashToCctxList = append(state.InTxHashToCctxList, inTxHashToCctx) } - permissionFlags := &types.PermissionFlags{} - nullify.Fill(&permissionFlags) - state.PermissionFlags = permissionFlags + buf, err := s.cfg.Codec.MarshalJSON(&state) s.Require().NoError(err) s.cfg.GenesisState[types.ModuleName] = buf - s.state = &state + s.crossChainState = &state } diff --git a/x/crosschain/client/querytests/tss.go b/x/crosschain/client/querytests/tss.go index 5d8519c106..4a25330909 100644 --- a/x/crosschain/client/querytests/tss.go +++ b/x/crosschain/client/querytests/tss.go @@ -11,7 +11,7 @@ import ( func (s *CliTestSuite) TestShowTSS() { ctx := s.network.Validators[0].ClientCtx - obj := s.state.Tss + obj := s.crossChainState.Tss common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } diff --git a/x/crosschain/genesis.go b/x/crosschain/genesis.go index 21478f8d5d..4d8287ed45 100644 --- a/x/crosschain/genesis.go +++ b/x/crosschain/genesis.go @@ -17,17 +17,8 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) for _, elem := range genState.InTxHashToCctxList { k.SetInTxHashToCctx(ctx, elem) } - // Set if defined - if genState.PermissionFlags != nil { - k.SetPermissionFlags(ctx, *genState.PermissionFlags) - } else { - k.SetPermissionFlags(ctx, types.PermissionFlags{IsInboundEnabled: true}) - } + // this line is used by starport scaffolding # genesis/module/init - // Set if defined - if genState.Keygen != nil { - k.SetKeygen(ctx, *genState.Keygen) - } // Set all the gasPrice for _, elem := range genState.GasPriceList { @@ -49,11 +40,6 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetCctxAndNonceToCctxAndInTxHashToCctx(ctx, *elem) } - // Set all the nodeAccount - for _, elem := range genState.NodeAccountList { - k.SetNodeAccount(ctx, *elem) - } - if genState.Tss != nil { k.SetTSS(ctx, *genState.Tss) } @@ -66,17 +52,9 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.OutTxTrackerList = k.GetAllOutTxTracker(ctx) genesis.InTxHashToCctxList = k.GetAllInTxHashToCctx(ctx) - // Get all permissionFlags - permissionFlags, found := k.GetPermissionFlags(ctx) - if found { - genesis.PermissionFlags = &permissionFlags - } + // this line is used by starport scaffolding # genesis/module/export // Get all keygen - keygen, found := k.GetKeygen(ctx) - if found { - genesis.Keygen = &keygen - } // Get all tSSVoter // TODO : ADD for single TSS @@ -109,12 +87,6 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.CrossChainTxs = append(genesis.CrossChainTxs, &e) } - // Get all nodeAccount - nodeAccountList := k.GetAllNodeAccount(ctx) - for _, elem := range nodeAccountList { - e := elem - genesis.NodeAccountList = append(genesis.NodeAccountList, &e) - } return genesis } diff --git a/x/crosschain/genesis_test.go b/x/crosschain/genesis_test.go index c16771a62c..6f1e8d6cb2 100644 --- a/x/crosschain/genesis_test.go +++ b/x/crosschain/genesis_test.go @@ -28,9 +28,9 @@ func TestGenesis(t *testing.T) { InTxHash: "1", }, }, - PermissionFlags: &types.PermissionFlags{ - IsInboundEnabled: true, - }, + //PermissionFlags: &types.PermissionFlags{ + // IsInboundEnabled: true, + //}, // this line is used by starport scaffolding # genesis/test/state } @@ -44,6 +44,6 @@ func TestGenesis(t *testing.T) { require.ElementsMatch(t, genesisState.OutTxTrackerList, got.OutTxTrackerList) require.ElementsMatch(t, genesisState.InTxHashToCctxList, got.InTxHashToCctxList) - require.Equal(t, genesisState.PermissionFlags, got.PermissionFlags) + //require.Equal(t, genesisState.PermissionFlags, got.PermissionFlags) // this line is used by starport scaffolding # genesis/test/assert } diff --git a/x/crosschain/handler.go b/x/crosschain/handler.go index a1e5aaf0b5..53ae665c8b 100644 --- a/x/crosschain/handler.go +++ b/x/crosschain/handler.go @@ -10,15 +10,12 @@ import ( // NewHandler : keeping this function here to assist ignite scaffolding, we do not use this . func NewHandler(k keeper.Keeper) sdk.Handler { - msgServer := keeper.NewMsgServerImpl(k) + _ = keeper.NewMsgServerImpl(k) return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { ctx = ctx.WithEventManager(sdk.NewEventManager()) switch msg := msg.(type) { - case *types.MsgUpdateKeygen: - res, err := msgServer.UpdateKeygen(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - // this line is used by starport scaffolding # 1 + // this line is used by starport scaffolding # 1 default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) diff --git a/x/crosschain/keeper/events.go b/x/crosschain/keeper/events.go index fcc4977be6..08aced9e4e 100644 --- a/x/crosschain/keeper/events.go +++ b/x/crosschain/keeper/events.go @@ -1,7 +1,6 @@ package keeper import ( - types2 "github.com/coinbase/rosetta-sdk-go/types" "github.com/zeta-chain/zetacore/common" "strconv" @@ -32,17 +31,6 @@ func EmitEventInboundFinalized(ctx sdk.Context, cctx *types.CrossChainTx) { } } -func EmitEventKeyGenBlockUpdated(ctx sdk.Context, keygen *types.Keygen) { - err := ctx.EventManager().EmitTypedEvents(&types.EventKeygenBlockUpdated{ - MsgTypeUrl: sdk.MsgTypeURL(&types.MsgUpdateKeygen{}), - KeygenBlock: strconv.Itoa(int(keygen.BlockNumber)), - KeygenPubkeys: types2.PrettyPrintStruct(keygen.GranteePubkeys), - }) - if err != nil { - ctx.Logger().Error("Error emitting EventKeygenBlockUpdated :", err) - } -} - func EmitZRCWithdrawCreated(ctx sdk.Context, cctx types.CrossChainTx) { err := ctx.EventManager().EmitTypedEvents(&types.EventZrcWithdrawCreated{ MsgTypeUrl: "/zetachain.zetacore.crosschain.internal.ZRCWithdrawCreated", diff --git a/x/crosschain/keeper/in_tx_hash_to_cctx_test.go b/x/crosschain/keeper/in_tx_hash_to_cctx_test.go index 8c21f9a539..e1784d1c35 100644 --- a/x/crosschain/keeper/in_tx_hash_to_cctx_test.go +++ b/x/crosschain/keeper/in_tx_hash_to_cctx_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "github.com/zeta-chain/zetacore/x/crosschain/keeper" "strconv" "testing" @@ -8,7 +9,6 @@ import ( "github.com/stretchr/testify/require" keepertest "github.com/zeta-chain/zetacore/testutil/keeper" "github.com/zeta-chain/zetacore/testutil/nullify" - "github.com/zeta-chain/zetacore/x/crosschain/keeper" "github.com/zeta-chain/zetacore/x/crosschain/types" ) diff --git a/x/crosschain/keeper/keeper_cross_chain_tx_vote_inbound_tx.go b/x/crosschain/keeper/keeper_cross_chain_tx_vote_inbound_tx.go index b0fffe52bc..c94ee0807a 100644 --- a/x/crosschain/keeper/keeper_cross_chain_tx_vote_inbound_tx.go +++ b/x/crosschain/keeper/keeper_cross_chain_tx_vote_inbound_tx.go @@ -31,7 +31,7 @@ import ( func (k msgServer) VoteOnObservedInboundTx(goCtx context.Context, msg *types.MsgVoteOnObservedInboundTx) (*types.MsgVoteOnObservedInboundTxResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) observationType := observerTypes.ObservationType_InBoundTx - if !k.IsInboundAllowed(ctx) { + if !k.zetaObserverKeeper.IsInboundAllowed(ctx) { return nil, types.ErrNotEnoughPermissions } // GetChainFromChainID makes sure we are getting only supported chains , if a chain support has been turned on using gov proposal, this function returns nil @@ -57,7 +57,7 @@ func (k msgServer) VoteOnObservedInboundTx(goCtx context.Context, msg *types.Msg return nil, err } if isNew { - observerKeeper.EmitEventBallotCreated(ctx, ballot, msg.InTxHash, observationChain.ChainName.String(), sdk.MsgTypeURL(&types.MsgVoteOnObservedInboundTx{})) + observerKeeper.EmitEventBallotCreated(ctx, ballot, msg.InTxHash, observationChain.String()) } // AddVoteToBallot adds a vote and sets the ballot ballot, err = k.zetaObserverKeeper.AddVoteToBallot(ctx, ballot, msg.Creator, observerTypes.VoteType_SuccessObservation) diff --git a/x/crosschain/keeper/keeper_cross_chain_tx_vote_outbound_tx.go b/x/crosschain/keeper/keeper_cross_chain_tx_vote_outbound_tx.go index c5e5e6c314..b6450ca7c9 100644 --- a/x/crosschain/keeper/keeper_cross_chain_tx_vote_outbound_tx.go +++ b/x/crosschain/keeper/keeper_cross_chain_tx_vote_outbound_tx.go @@ -74,7 +74,7 @@ func (k msgServer) VoteOnObservedOutboundTx(goCtx context.Context, msg *types.Ms return nil, err } if isNew { - observerKeeper.EmitEventBallotCreated(ctx, ballot, msg.ObservedOutTxHash, observationChain.ChainName.String(), sdk.MsgTypeURL(&types.MsgVoteOnObservedOutboundTx{})) + observerKeeper.EmitEventBallotCreated(ctx, ballot, msg.ObservedOutTxHash, observationChain.String()) // Set this the first time when the ballot is created // The ballot might change if there are more votes in a different outbound ballot for this cctx hash cctx.GetCurrentOutTxParam().OutboundTxBallotIndex = ballotIndex diff --git a/x/crosschain/keeper/keeper_out_tx_tracker_test.go b/x/crosschain/keeper/keeper_out_tx_tracker_test.go index c82a326347..cc6db0be4c 100644 --- a/x/crosschain/keeper/keeper_out_tx_tracker_test.go +++ b/x/crosschain/keeper/keeper_out_tx_tracker_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "fmt" + "github.com/zeta-chain/zetacore/x/crosschain/keeper" "strconv" "testing" @@ -9,7 +10,6 @@ import ( "github.com/stretchr/testify/require" keepertest "github.com/zeta-chain/zetacore/testutil/keeper" "github.com/zeta-chain/zetacore/testutil/nullify" - "github.com/zeta-chain/zetacore/x/crosschain/keeper" "github.com/zeta-chain/zetacore/x/crosschain/types" ) diff --git a/x/crosschain/keeper/keeper_tss_voter.go b/x/crosschain/keeper/keeper_tss_voter.go index 711ac6c462..b5a953e317 100644 --- a/x/crosschain/keeper/keeper_tss_voter.go +++ b/x/crosschain/keeper/keeper_tss_voter.go @@ -34,13 +34,13 @@ func (k msgServer) CreateTSSVoter(goCtx context.Context, msg *types.MsgCreateTSS return nil, errorsmod.Wrap(sdkerrors.ErrorInvalidSigner, fmt.Sprintf("signer %s does not have a node account set", msg.Creator)) } // No need to create a ballot if keygen does not exist - keygen, found := k.GetKeygen(ctx) + keygen, found := k.zetaObserverKeeper.GetKeygen(ctx) if !found { - return &types.MsgCreateTSSVoterResponse{}, types.ErrKeygenNotFound + return &types.MsgCreateTSSVoterResponse{}, observerTypes.ErrKeygenNotFound } // USE a separate transaction to update KEYGEN status to pending when trying to change the TSS address - if keygen.Status == types.KeygenStatus_KeyGenSuccess { - return &types.MsgCreateTSSVoterResponse{}, types.ErrKeygenCompleted + if keygen.Status == observerTypes.KeygenStatus_KeyGenSuccess { + return &types.MsgCreateTSSVoterResponse{}, observerTypes.ErrKeygenCompleted } index := msg.Digest() // Add votes and Set Ballot @@ -49,7 +49,7 @@ func (k msgServer) CreateTSSVoter(goCtx context.Context, msg *types.MsgCreateTSS if !found { var voterList []string - for _, nodeAccount := range k.GetAllNodeAccount(ctx) { + for _, nodeAccount := range k.zetaObserverKeeper.GetAllNodeAccount(ctx) { voterList = append(voterList, nodeAccount.Operator) } ballot = observerTypes.Ballot{ @@ -75,7 +75,7 @@ func (k msgServer) CreateTSSVoter(goCtx context.Context, msg *types.MsgCreateTSS } } if !found { - observerKeeper.EmitEventBallotCreated(ctx, ballot, msg.TssPubkey, "Common-TSS-For-All-Chain", sdk.MsgTypeURL(&types.MsgCreateTSSVoter{})) + observerKeeper.EmitEventBallotCreated(ctx, ballot, msg.TssPubkey, "Common-TSS-For-All-Chain") } ballot, isFinalized := k.zetaObserverKeeper.CheckIfFinalizingVote(ctx, ballot) @@ -93,7 +93,7 @@ func (k msgServer) CreateTSSVoter(goCtx context.Context, msg *types.MsgCreateTSS FinalizedZetaHeight: ctx.BlockHeight(), KeyGenZetaHeight: msg.KeyGenZetaHeight, }) - keygen.Status = types.KeygenStatus_KeyGenSuccess + keygen.Status = observerTypes.KeygenStatus_KeyGenSuccess keygen.BlockNumber = ctx.BlockHeight() // initialize the nonces and pending nonces of all enabled chain supportedChains := k.zetaObserverKeeper.GetParams(ctx).GetSupportedChains() @@ -110,10 +110,10 @@ func (k msgServer) CreateTSSVoter(goCtx context.Context, msg *types.MsgCreateTSS k.SetPendingNonces(ctx, p) } } else if ballot.BallotStatus == observerTypes.BallotStatus_BallotFinalized_FailureObservation { - keygen.Status = types.KeygenStatus_KeyGenFailed + keygen.Status = observerTypes.KeygenStatus_KeyGenFailed keygen.BlockNumber = math2.MaxInt64 } - k.SetKeygen(ctx, keygen) + k.zetaObserverKeeper.SetKeygen(ctx, keygen) // Remove ballot return &types.MsgCreateTSSVoterResponse{}, nil } diff --git a/x/crosschain/keeper/keeper_utils.go b/x/crosschain/keeper/keeper_utils.go index ce63cf1e9e..9d43a15f81 100644 --- a/x/crosschain/keeper/keeper_utils.go +++ b/x/crosschain/keeper/keeper_utils.go @@ -14,7 +14,7 @@ import ( // IsAuthorized checks whether a signer is authorized to sign , by checking their address against the observer mapper which contains the observer list for the chain and type func (k Keeper) IsAuthorizedNodeAccount(ctx sdk.Context, address string) bool { - _, found := k.GetNodeAccount(ctx, address) + _, found := k.zetaObserverKeeper.GetNodeAccount(ctx, address) if found { return true } diff --git a/x/crosschain/keeper/migrator.go b/x/crosschain/keeper/migrator.go new file mode 100644 index 0000000000..98b736d8bc --- /dev/null +++ b/x/crosschain/keeper/migrator.go @@ -0,0 +1,23 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + v2 "github.com/zeta-chain/zetacore/x/crosschain/migrations/v2" +) + +// Migrator is a struct for handling in-place store migrations. +type Migrator struct { + crossChainKeeper Keeper +} + +// NewMigrator returns a new Migrator. +func NewMigrator(keeper Keeper) Migrator { + return Migrator{ + crossChainKeeper: keeper, + } +} + +// Migrate2to3 migrates the store from consensus version 2 to 3 +func (m Migrator) Migrate1to2(ctx sdk.Context) error { + return v2.MigrateStore(ctx, m.crossChainKeeper.zetaObserverKeeper, m.crossChainKeeper.storeKey, m.crossChainKeeper.cdc) +} diff --git a/x/crosschain/migrations/v2/legacytypes.go b/x/crosschain/migrations/v2/legacytypes.go new file mode 100644 index 0000000000..373e33388d --- /dev/null +++ b/x/crosschain/migrations/v2/legacytypes.go @@ -0,0 +1,7 @@ +package v2 + +const ( + LegacyNodeAccountKey = "NodeAccount-value-" + LegacyKeygenKey = "Keygen-value-" + LegacyPermissionFlagsKey = "PermissionFlags-value-" +) diff --git a/x/crosschain/migrations/v2/migrate.go b/x/crosschain/migrations/v2/migrate.go new file mode 100644 index 0000000000..eb788042b6 --- /dev/null +++ b/x/crosschain/migrations/v2/migrate.go @@ -0,0 +1,77 @@ +package v2 + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/store/prefix" + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/zeta-chain/zetacore/x/crosschain/types" + observerTypes "github.com/zeta-chain/zetacore/x/observer/types" +) + +// MigrateStore migrates the x/crosschain module state from the consensus version 1 to 2 +// This migration moves some data from the cross chain store to the observer store. +// The data moved is the node accounts, permission flags and keygen. +func MigrateStore( + ctx sdk.Context, + observerKeeper types.ZetaObserverKeeper, + crossChainStoreKey storetypes.StoreKey, + cdc codec.BinaryCodec, +) error { + + // Using New Types from observer module as the structure is the same + var nodeAccounts []observerTypes.NodeAccount + var permissionFlags observerTypes.PermissionFlags + var keygen observerTypes.Keygen + writePermissionFlags := false + writeKeygen := false + + // Fetch data from cross chain store using the legacy keys directly + store := prefix.NewStore(ctx.KVStore(crossChainStoreKey), types.KeyPrefix(LegacyNodeAccountKey)) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + var val observerTypes.NodeAccount + cdc.MustUnmarshal(iterator.Value(), &val) + nodeAccounts = append(nodeAccounts, val) + } + + store = prefix.NewStore(ctx.KVStore(crossChainStoreKey), types.KeyPrefix(LegacyKeygenKey)) + b := store.Get([]byte{0}) + if b != nil { + cdc.MustUnmarshal(b, &keygen) + writeKeygen = true + } + + store = prefix.NewStore(ctx.KVStore(crossChainStoreKey), types.KeyPrefix(LegacyPermissionFlagsKey)) + b = store.Get([]byte{0}) + if b != nil { + cdc.MustUnmarshal(b, &permissionFlags) + writePermissionFlags = true + } + + // Write data to observer store using the new keys + if nodeAccounts != nil { + for _, nodeAccount := range nodeAccounts { + observerKeeper.SetNodeAccount(ctx, nodeAccount) + } + } + if writeKeygen { + observerKeeper.SetKeygen(ctx, keygen) + } + if writePermissionFlags { + observerKeeper.SetPermissionFlags(ctx, permissionFlags) + } + + allObservers := observerKeeper.GetAllObserverMappers(ctx) + totalObserverCountCurrentBlock := 0 + for _, observer := range allObservers { + totalObserverCountCurrentBlock += len(observer.ObserverList) + } + observerKeeper.SetLastObserverCount(ctx, &observerTypes.LastObserverCount{ + Count: uint64(totalObserverCountCurrentBlock), + LastChangeHeight: ctx.BlockHeight(), + }) + + return nil +} diff --git a/x/crosschain/module.go b/x/crosschain/module.go index 10f1a89a58..e7992b90d8 100644 --- a/x/crosschain/module.go +++ b/x/crosschain/module.go @@ -4,11 +4,11 @@ import ( "context" "encoding/json" "fmt" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" + "github.com/zeta-chain/zetacore/x/crosschain/keeper" abci "github.com/tendermint/tendermint/abci/types" @@ -18,7 +18,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/zeta-chain/zetacore/x/crosschain/client/cli" - "github.com/zeta-chain/zetacore/x/crosschain/keeper" "github.com/zeta-chain/zetacore/x/crosschain/types" // this line is used by starport scaffolding # ibc/module/import ) @@ -147,6 +146,10 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + m := keeper.NewMigrator(am.keeper) + if err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2); err != nil { + panic(err) + } } // RegisterInvariants registers the capability module's invariants. @@ -171,7 +174,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion implements AppModule/ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return 2 } // BeginBlock executes all ABCI BeginBlock logic respective to the capability module. func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/crosschain/types/codec.go b/x/crosschain/types/codec.go index bbc2cc35cc..94b63b67f0 100644 --- a/x/crosschain/types/codec.go +++ b/x/crosschain/types/codec.go @@ -16,8 +16,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgVoteOnObservedOutboundTxResponse{}, "crosschain/ReceiveConfirmation", nil) cdc.RegisterConcrete(&MsgVoteOnObservedInboundTx{}, "crosschain/SendVoter", nil) cdc.RegisterConcrete(&MsgSetNodeKeys{}, "crosschain/SetNodeKeys", nil) - cdc.RegisterConcrete(&MsgUpdatePermissionFlags{}, "crosschain/UpdatePermissionFlags", nil) - cdc.RegisterConcrete(&MsgUpdateKeygen{}, "crosschain/UpdateKeygen", nil) + // this line is used by starport scaffolding # 2 } @@ -47,12 +46,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSetNodeKeys{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgUpdatePermissionFlags{}, - ) - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgUpdateKeygen{}, - ) + // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/crosschain/types/errors.go b/x/crosschain/types/errors.go index 8e831d4fc8..4e3aa62e92 100644 --- a/x/crosschain/types/errors.go +++ b/x/crosschain/types/errors.go @@ -1,31 +1,28 @@ package types -// DONTCOVER - import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + errorsmod "cosmossdk.io/errors" ) var ( - ErrUnsupportedChain = sdkerrors.Register(ModuleName, 1102, "chain parse error") - ErrInvalidChainID = sdkerrors.Register(ModuleName, 1101, "chain id cannot be negative") - ErrInvalidPubKeySet = sdkerrors.Register(ModuleName, 1106, "invalid pubkeyset") - ErrUnableToGetGasPrice = sdkerrors.Register(ModuleName, 1107, "unable to get gas price") - ErrNotEnoughZetaBurnt = sdkerrors.Register(ModuleName, 1109, "not enough zeta burnt") - ErrCannotFindReceiverNonce = sdkerrors.Register(ModuleName, 1110, "cannot find receiver chain nonce") - ErrCannotFindPendingTxQueue = sdkerrors.Register(ModuleName, 1111, "cannot find pending tx queue") - ErrGasCoinNotFound = sdkerrors.Register(ModuleName, 1113, "Err gas coin not found for SenderChain") - ErrUnableToDepositZRC20 = sdkerrors.Register(ModuleName, 1114, "Unable to deposit ZRC20 ") - ErrUnableToParseContract = sdkerrors.Register(ModuleName, 1115, "Cannot parse contract and data") - ErrCannotProcessWithdrawal = sdkerrors.Register(ModuleName, 1116, "Cannot process withdrawal event") - ErrForeignCoinNotFound = sdkerrors.Register(ModuleName, 1118, "Err gas coin not found for SenderChain") - ErrNotEnoughPermissions = sdkerrors.Register(ModuleName, 1119, "Not enough permissions for current actions") - ErrKeygenNotFound = sdkerrors.Register(ModuleName, 1120, "Err Keygen not found, Keygen block can only be updated,New keygen cannot be set") - ErrCannotFindPendingNonces = sdkerrors.Register(ModuleName, 1121, "Err Cannot find pending nonces") - ErrCannotFindTSSKeys = sdkerrors.Register(ModuleName, 1122, "Err Cannot find TSS keys") - ErrNonceMismatch = sdkerrors.Register(ModuleName, 1123, "Err Nonce mismatch") - ErrKeygenBlockTooLow = sdkerrors.Register(ModuleName, 1125, "Please set a block number at-least 10 blocks higher than the current block number") - ErrNotFoundCoreParams = sdkerrors.Register(ModuleName, 1126, "Not found chain core params") - ErrUnableToSendCoinType = sdkerrors.Register(ModuleName, 1127, "Unable to send this coin type to a receiver chain") - ErrKeygenCompleted = sdkerrors.Register(ModuleName, 1128, "Keygen already completed") + ErrUnsupportedChain = errorsmod.Register(ModuleName, 1102, "chain parse error") + ErrInvalidChainID = errorsmod.Register(ModuleName, 1101, "chain id cannot be negative") + ErrInvalidPubKeySet = errorsmod.Register(ModuleName, 1106, "invalid pubkeyset") + ErrUnableToGetGasPrice = errorsmod.Register(ModuleName, 1107, "unable to get gas price") + ErrNotEnoughZetaBurnt = errorsmod.Register(ModuleName, 1109, "not enough zeta burnt") + ErrCannotFindReceiverNonce = errorsmod.Register(ModuleName, 1110, "cannot find receiver chain nonce") + ErrCannotFindPendingTxQueue = errorsmod.Register(ModuleName, 1111, "cannot find pending tx queue") + + ErrGasCoinNotFound = errorsmod.Register(ModuleName, 1113, "Err gas coin not found for SenderChain") + ErrUnableToDepositZRC20 = errorsmod.Register(ModuleName, 1114, "Unable to deposit ZRC20 ") + ErrUnableToParseContract = errorsmod.Register(ModuleName, 1115, "Cannot parse contract and data") + ErrCannotProcessWithdrawal = errorsmod.Register(ModuleName, 1116, "Cannot process withdrawal event") + ErrForeignCoinNotFound = errorsmod.Register(ModuleName, 1118, "Err gas coin not found for SenderChain") + ErrNotEnoughPermissions = errorsmod.Register(ModuleName, 1119, "Not enough permissions for current actions") + + ErrCannotFindPendingNonces = errorsmod.Register(ModuleName, 1121, "Err Cannot find pending nonces") + ErrCannotFindTSSKeys = errorsmod.Register(ModuleName, 1122, "Err Cannot find TSS keys") + ErrNonceMismatch = errorsmod.Register(ModuleName, 1123, "Err Nonce mismatch") + ErrNotFoundCoreParams = errorsmod.Register(ModuleName, 1126, "Not found chain core params") + ErrUnableToSendCoinType = errorsmod.Register(ModuleName, 1127, "Unable to send this coin type to a receiver chain") ) diff --git a/x/crosschain/types/events.pb.go b/x/crosschain/types/events.pb.go index d0e27c3298..fb2581deea 100644 --- a/x/crosschain/types/events.pb.go +++ b/x/crosschain/types/events.pb.go @@ -172,66 +172,6 @@ func (m *EventInboundFinalized) GetSenderChain() string { return "" } -type EventKeygenBlockUpdated struct { - MsgTypeUrl string `protobuf:"bytes,1,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` - KeygenBlock string `protobuf:"bytes,2,opt,name=keygen_block,json=keygenBlock,proto3" json:"keygen_block,omitempty"` - KeygenPubkeys string `protobuf:"bytes,3,opt,name=keygen_pubkeys,json=keygenPubkeys,proto3" json:"keygen_pubkeys,omitempty"` -} - -func (m *EventKeygenBlockUpdated) Reset() { *m = EventKeygenBlockUpdated{} } -func (m *EventKeygenBlockUpdated) String() string { return proto.CompactTextString(m) } -func (*EventKeygenBlockUpdated) ProtoMessage() {} -func (*EventKeygenBlockUpdated) Descriptor() ([]byte, []int) { - return fileDescriptor_7398db8b12b87b9e, []int{1} -} -func (m *EventKeygenBlockUpdated) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventKeygenBlockUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventKeygenBlockUpdated.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 *EventKeygenBlockUpdated) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventKeygenBlockUpdated.Merge(m, src) -} -func (m *EventKeygenBlockUpdated) XXX_Size() int { - return m.Size() -} -func (m *EventKeygenBlockUpdated) XXX_DiscardUnknown() { - xxx_messageInfo_EventKeygenBlockUpdated.DiscardUnknown(m) -} - -var xxx_messageInfo_EventKeygenBlockUpdated proto.InternalMessageInfo - -func (m *EventKeygenBlockUpdated) GetMsgTypeUrl() string { - if m != nil { - return m.MsgTypeUrl - } - return "" -} - -func (m *EventKeygenBlockUpdated) GetKeygenBlock() string { - if m != nil { - return m.KeygenBlock - } - return "" -} - -func (m *EventKeygenBlockUpdated) GetKeygenPubkeys() string { - if m != nil { - return m.KeygenPubkeys - } - return "" -} - type EventZrcWithdrawCreated struct { MsgTypeUrl string `protobuf:"bytes,1,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` CctxIndex string `protobuf:"bytes,2,opt,name=cctx_index,json=cctxIndex,proto3" json:"cctx_index,omitempty"` @@ -248,7 +188,7 @@ func (m *EventZrcWithdrawCreated) Reset() { *m = EventZrcWithdrawCreated func (m *EventZrcWithdrawCreated) String() string { return proto.CompactTextString(m) } func (*EventZrcWithdrawCreated) ProtoMessage() {} func (*EventZrcWithdrawCreated) Descriptor() ([]byte, []int) { - return fileDescriptor_7398db8b12b87b9e, []int{2} + return fileDescriptor_7398db8b12b87b9e, []int{1} } func (m *EventZrcWithdrawCreated) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -352,7 +292,7 @@ func (m *EventZetaWithdrawCreated) Reset() { *m = EventZetaWithdrawCreat func (m *EventZetaWithdrawCreated) String() string { return proto.CompactTextString(m) } func (*EventZetaWithdrawCreated) ProtoMessage() {} func (*EventZetaWithdrawCreated) Descriptor() ([]byte, []int) { - return fileDescriptor_7398db8b12b87b9e, []int{3} + return fileDescriptor_7398db8b12b87b9e, []int{2} } func (m *EventZetaWithdrawCreated) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -428,7 +368,7 @@ func (m *EventOutboundFailure) Reset() { *m = EventOutboundFailure{} } func (m *EventOutboundFailure) String() string { return proto.CompactTextString(m) } func (*EventOutboundFailure) ProtoMessage() {} func (*EventOutboundFailure) Descriptor() ([]byte, []int) { - return fileDescriptor_7398db8b12b87b9e, []int{4} + return fileDescriptor_7398db8b12b87b9e, []int{3} } func (m *EventOutboundFailure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -504,7 +444,7 @@ func (m *EventOutboundSuccess) Reset() { *m = EventOutboundSuccess{} } func (m *EventOutboundSuccess) String() string { return proto.CompactTextString(m) } func (*EventOutboundSuccess) ProtoMessage() {} func (*EventOutboundSuccess) Descriptor() ([]byte, []int) { - return fileDescriptor_7398db8b12b87b9e, []int{5} + return fileDescriptor_7398db8b12b87b9e, []int{4} } func (m *EventOutboundSuccess) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -570,7 +510,6 @@ func (m *EventOutboundSuccess) GetZetaMinted() string { func init() { proto.RegisterType((*EventInboundFinalized)(nil), "zetachain.zetacore.crosschain.EventInboundFinalized") - proto.RegisterType((*EventKeygenBlockUpdated)(nil), "zetachain.zetacore.crosschain.EventKeygenBlockUpdated") proto.RegisterType((*EventZrcWithdrawCreated)(nil), "zetachain.zetacore.crosschain.EventZrcWithdrawCreated") proto.RegisterType((*EventZetaWithdrawCreated)(nil), "zetachain.zetacore.crosschain.EventZetaWithdrawCreated") proto.RegisterType((*EventOutboundFailure)(nil), "zetachain.zetacore.crosschain.EventOutboundFailure") @@ -580,48 +519,44 @@ func init() { func init() { proto.RegisterFile("crosschain/events.proto", fileDescriptor_7398db8b12b87b9e) } var fileDescriptor_7398db8b12b87b9e = []byte{ - // 642 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x95, 0xcf, 0x4e, 0xdb, 0x4a, - 0x14, 0xc6, 0x31, 0x24, 0x21, 0x39, 0x09, 0x20, 0xf9, 0x72, 0x2f, 0x73, 0xd1, 0x25, 0x17, 0x22, - 0xf5, 0xcf, 0xa6, 0x89, 0xaa, 0xbe, 0x01, 0xa8, 0x15, 0x08, 0x21, 0xaa, 0x02, 0xaa, 0xc4, 0xc6, - 0x9a, 0xd8, 0x47, 0xf6, 0x28, 0xf6, 0x4c, 0x34, 0x33, 0x06, 0x87, 0x7d, 0xf7, 0x7d, 0x91, 0x4a, - 0x5d, 0xf5, 0x19, 0xba, 0x64, 0xd1, 0x45, 0x97, 0x15, 0xbc, 0x48, 0x35, 0x33, 0x4e, 0x21, 0x46, - 0x6a, 0x51, 0x2b, 0x55, 0x5d, 0xc5, 0xe7, 0x77, 0xce, 0x9c, 0x7c, 0xf3, 0xcd, 0xb1, 0x07, 0xd6, - 0x42, 0x29, 0x94, 0x0a, 0x13, 0xca, 0xf8, 0x00, 0xcf, 0x90, 0x6b, 0xd5, 0x1f, 0x4b, 0xa1, 0x85, - 0xbf, 0x71, 0x81, 0x9a, 0x5a, 0xde, 0xb7, 0x4f, 0x42, 0x62, 0xff, 0xa6, 0x76, 0x7d, 0x35, 0x16, - 0xb1, 0xb0, 0x95, 0x03, 0xf3, 0xe4, 0x16, 0xad, 0xff, 0x15, 0x8a, 0x2c, 0x13, 0x7c, 0xe0, 0x7e, - 0x1c, 0xec, 0x7d, 0x5a, 0x80, 0xbf, 0x9f, 0x9b, 0xd6, 0x7b, 0x7c, 0x28, 0x72, 0x1e, 0xbd, 0x60, - 0x9c, 0xa6, 0xec, 0x02, 0x23, 0x7f, 0x13, 0x3a, 0x99, 0x8a, 0x03, 0x3d, 0x19, 0x63, 0x90, 0xcb, - 0x94, 0x78, 0x9b, 0xde, 0xe3, 0xd6, 0x2b, 0xc8, 0x54, 0x7c, 0x3c, 0x19, 0xe3, 0x89, 0x4c, 0xfd, - 0x0d, 0x80, 0x30, 0xd4, 0x45, 0xc0, 0x78, 0x84, 0x05, 0x99, 0xb7, 0xf9, 0x96, 0x21, 0x7b, 0x06, - 0xf8, 0xff, 0x40, 0x43, 0x21, 0x8f, 0x50, 0x92, 0x05, 0x9b, 0x2a, 0x23, 0xff, 0x5f, 0x68, 0xea, - 0x22, 0x10, 0x32, 0x66, 0x9c, 0xd4, 0x6c, 0x66, 0x51, 0x17, 0x87, 0x26, 0xf4, 0x57, 0xa1, 0x4e, - 0x95, 0x42, 0x4d, 0xea, 0x96, 0xbb, 0xc0, 0xff, 0x0f, 0x80, 0xf1, 0x40, 0x17, 0x41, 0x42, 0x55, - 0x42, 0x1a, 0x36, 0xd5, 0x64, 0xfc, 0xb8, 0xd8, 0xa5, 0x2a, 0xf1, 0x1f, 0xc2, 0x0a, 0xe3, 0xc1, - 0x30, 0x15, 0xe1, 0x28, 0x48, 0x90, 0xc5, 0x89, 0x26, 0x8b, 0xb6, 0x64, 0x89, 0xf1, 0x6d, 0x43, - 0x77, 0x2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a8, 0x34, 0x7e, 0x38, 0x2a, 0x8b, 0xdf, 0x1f, 0x95, - 0xe6, 0xcc, 0xa8, 0xcc, 0x4e, 0x40, 0xab, 0x32, 0x01, 0xbd, 0xf7, 0x1e, 0x10, 0xe7, 0x17, 0x6a, - 0xfa, 0xdb, 0x0c, 0x9b, 0x75, 0xa3, 0x56, 0x71, 0x63, 0x56, 0x72, 0xbd, 0x2a, 0xf9, 0x83, 0x07, - 0xab, 0x56, 0xf2, 0x61, 0xae, 0xdd, 0x27, 0x84, 0xb2, 0x34, 0x97, 0xf8, 0xeb, 0x72, 0x37, 0x00, - 0x44, 0x1a, 0x4d, 0xff, 0xd8, 0x49, 0x6e, 0x89, 0x34, 0x2a, 0xdf, 0x96, 0x59, 0x5d, 0xb5, 0xea, - 0xcb, 0xf4, 0x3f, 0xb4, 0xcd, 0xb7, 0x31, 0xc8, 0x18, 0xd7, 0x18, 0x95, 0xba, 0xc1, 0xa0, 0x03, - 0x4b, 0xee, 0x0a, 0x3f, 0xca, 0xc3, 0x10, 0x95, 0xfa, 0xd3, 0x85, 0x6f, 0xef, 0x7f, 0xbc, 0xea, - 0x7a, 0x97, 0x57, 0x5d, 0xef, 0xcb, 0x55, 0xd7, 0x7b, 0x7b, 0xdd, 0x9d, 0xbb, 0xbc, 0xee, 0xce, - 0x7d, 0xbe, 0xee, 0xce, 0x9d, 0x3e, 0x8d, 0x99, 0x4e, 0xf2, 0x61, 0x3f, 0x14, 0xd9, 0xc0, 0x2c, - 0x78, 0xe2, 0xee, 0x8e, 0xe9, 0x1d, 0x31, 0x28, 0x06, 0xb7, 0x6e, 0x14, 0xb3, 0x3f, 0x35, 0x6c, - 0xd8, 0x7b, 0xe0, 0xd9, 0xd7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0xcf, 0x6b, 0x2d, 0x6c, 0x06, - 0x00, 0x00, + // 586 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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c0, 0x53, 0xbf, 0xb3, 0x9b, 0xdd, 0x1c, + 0xd7, 0xf1, 0xb5, 0x4d, 0x6e, 0xef, 0xa7, 0x47, 0x3d, 0xb7, 0x7f, 0x9f, 0x7f, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x09, 0xa3, 0xf9, 0x52, 0xe4, 0x05, 0x00, 0x00, } func (m *EventInboundFinalized) Marshal() (dAtA []byte, err error) { @@ -745,50 +680,6 @@ func (m *EventInboundFinalized) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventKeygenBlockUpdated) 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 *EventKeygenBlockUpdated) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventKeygenBlockUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.KeygenPubkeys) > 0 { - i -= len(m.KeygenPubkeys) - copy(dAtA[i:], m.KeygenPubkeys) - i = encodeVarintEvents(dAtA, i, uint64(len(m.KeygenPubkeys))) - i-- - dAtA[i] = 0x1a - } - if len(m.KeygenBlock) > 0 { - i -= len(m.KeygenBlock) - copy(dAtA[i:], m.KeygenBlock) - i = encodeVarintEvents(dAtA, i, uint64(len(m.KeygenBlock))) - i-- - dAtA[i] = 0x12 - } - if len(m.MsgTypeUrl) > 0 { - i -= len(m.MsgTypeUrl) - copy(dAtA[i:], m.MsgTypeUrl) - i = encodeVarintEvents(dAtA, i, uint64(len(m.MsgTypeUrl))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *EventZrcWithdrawCreated) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1125,27 +1016,6 @@ func (m *EventInboundFinalized) Size() (n int) { return n } -func (m *EventKeygenBlockUpdated) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MsgTypeUrl) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.KeygenBlock) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.KeygenPubkeys) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - func (m *EventZrcWithdrawCreated) Size() (n int) { if m == nil { return 0 @@ -1782,152 +1652,6 @@ func (m *EventInboundFinalized) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventKeygenBlockUpdated) 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 ErrIntOverflowEvents - } - 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: EventKeygenBlockUpdated: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventKeygenBlockUpdated: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - 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 ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MsgTypeUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeygenBlock", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - 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 ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeygenBlock = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeygenPubkeys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - 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 ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeygenPubkeys = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *EventZrcWithdrawCreated) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/crosschain/types/expected_keepers.go b/x/crosschain/types/expected_keepers.go index 972f748f83..1f0fa50b6c 100644 --- a/x/crosschain/types/expected_keepers.go +++ b/x/crosschain/types/expected_keepers.go @@ -46,6 +46,14 @@ type ZetaObserverKeeper interface { GetAllBallots(ctx sdk.Context) (voters []*zetaObserverTypes.Ballot) GetParams(ctx sdk.Context) (params zetaObserverTypes.Params) GetCoreParamsByChainID(ctx sdk.Context, chainID int64) (params *zetaObserverTypes.CoreParams, found bool) + GetNodeAccount(ctx sdk.Context, address string) (nodeAccount zetaObserverTypes.NodeAccount, found bool) + GetAllNodeAccount(ctx sdk.Context) (nodeAccounts []zetaObserverTypes.NodeAccount) + SetNodeAccount(ctx sdk.Context, nodeAccount zetaObserverTypes.NodeAccount) + IsInboundAllowed(ctx sdk.Context) (found bool) + GetKeygen(ctx sdk.Context) (val zetaObserverTypes.Keygen, found bool) + SetKeygen(ctx sdk.Context, keygen zetaObserverTypes.Keygen) + SetPermissionFlags(ctx sdk.Context, permissionFlags zetaObserverTypes.PermissionFlags) + SetLastObserverCount(ctx sdk.Context, lbc *zetaObserverTypes.LastObserverCount) AddVoteToBallot(ctx sdk.Context, ballot zetaObserverTypes.Ballot, address string, observationType zetaObserverTypes.VoteType) (zetaObserverTypes.Ballot, error) CheckIfFinalizingVote(ctx sdk.Context, ballot zetaObserverTypes.Ballot) (zetaObserverTypes.Ballot, bool) IsAuthorized(ctx sdk.Context, address string, chain *common.Chain) (bool, error) diff --git a/x/crosschain/types/gas_balance.pb.go b/x/crosschain/types/gas_balance.pb.go deleted file mode 100644 index 5fae8ea110..0000000000 --- a/x/crosschain/types/gas_balance.pb.go +++ /dev/null @@ -1,678 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: crosschain/gas_balance.proto - -package types - -import ( - fmt "fmt" - _ "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 - -type GasBalance struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` - Chain string `protobuf:"bytes,3,opt,name=chain,proto3" json:"chain,omitempty"` - Signers []string `protobuf:"bytes,4,rep,name=signers,proto3" json:"signers,omitempty"` - BlockNums []uint64 `protobuf:"varint,5,rep,packed,name=blockNums,proto3" json:"blockNums,omitempty"` - Balances []string `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances,omitempty"` - MedianIndex uint64 `protobuf:"varint,7,opt,name=medianIndex,proto3" json:"medianIndex,omitempty"` -} - -func (m *GasBalance) Reset() { *m = GasBalance{} } -func (m *GasBalance) String() string { return proto.CompactTextString(m) } -func (*GasBalance) ProtoMessage() {} -func (*GasBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_14d43bc3f5eca505, []int{0} -} -func (m *GasBalance) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GasBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GasBalance.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 *GasBalance) XXX_Merge(src proto.Message) { - xxx_messageInfo_GasBalance.Merge(m, src) -} -func (m *GasBalance) XXX_Size() int { - return m.Size() -} -func (m *GasBalance) XXX_DiscardUnknown() { - xxx_messageInfo_GasBalance.DiscardUnknown(m) -} - -var xxx_messageInfo_GasBalance proto.InternalMessageInfo - -func (m *GasBalance) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *GasBalance) GetIndex() string { - if m != nil { - return m.Index - } - return "" -} - -func (m *GasBalance) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *GasBalance) GetSigners() []string { - if m != nil { - return m.Signers - } - return nil -} - -func (m *GasBalance) GetBlockNums() []uint64 { - if m != nil { - return m.BlockNums - } - return nil -} - -func (m *GasBalance) GetBalances() []string { - if m != nil { - return m.Balances - } - return nil -} - -func (m *GasBalance) GetMedianIndex() uint64 { - if m != nil { - return m.MedianIndex - } - return 0 -} - -func init() { - proto.RegisterType((*GasBalance)(nil), "zetachain.zetacore.crosschain.GasBalance") -} - -func init() { proto.RegisterFile("crosschain/gas_balance.proto", fileDescriptor_14d43bc3f5eca505) } - -var fileDescriptor_14d43bc3f5eca505 = []byte{ - // 271 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0xb1, 0x4e, 0x03, 0x21, - 0x18, 0xc7, 0x8b, 0x77, 0x6d, 0x2d, 0x6e, 0xa4, 0x03, 0x69, 0x2a, 0xb9, 0x38, 0xdd, 0xe2, 0x11, - 0xe3, 0x1b, 0x74, 0x31, 0xc6, 0xc4, 0xe1, 0x46, 0x17, 0xc3, 0x51, 0x42, 0x89, 0x3d, 0x68, 0x80, - 0x26, 0xd5, 0xa7, 0xf0, 0xb1, 0x3a, 0x76, 0x74, 0x34, 0x77, 0x2f, 0x62, 0x80, 0xd6, 0x76, 0xfb, - 0xfe, 0x3f, 0xf8, 0xfe, 0x81, 0x1f, 0x9c, 0x73, 0x6b, 0x9c, 0xe3, 0x2b, 0xa6, 0x34, 0x95, 0xcc, - 0xbd, 0x37, 0x6c, 0xcd, 0x34, 0x17, 0xd5, 0xc6, 0x1a, 0x6f, 0xd0, 0xed, 0x97, 0xf0, 0x2c, 0x1e, - 0x56, 0x71, 0x32, 0x56, 0x54, 0xe7, 0x85, 0xd9, 0x54, 0x1a, 0x69, 0xe2, 0x4d, 0x1a, 0xa6, 0xb4, - 0x74, 0xb7, 0x07, 0x10, 0x3e, 0x31, 0xb7, 0x48, 0x4d, 0x08, 0xc3, 0x31, 0xb7, 0x82, 0x79, 0x63, - 0x31, 0x28, 0x40, 0x39, 0xa9, 0x4f, 0x11, 0x4d, 0xe1, 0x50, 0xe9, 0xa5, 0xd8, 0xe1, 0xab, 0xc8, - 0x53, 0x08, 0x34, 0xb6, 0xe3, 0x2c, 0xd1, 0x18, 0x42, 0x8b, 0x53, 0x52, 0x0b, 0xeb, 0x70, 0x5e, - 0x64, 0xa1, 0xe5, 0x18, 0xd1, 0x1c, 0x4e, 0x9a, 0xb5, 0xe1, 0x1f, 0xaf, 0xdb, 0xd6, 0xe1, 0x61, - 0x91, 0x95, 0x79, 0x7d, 0x06, 0x68, 0x06, 0xaf, 0x8f, 0x5f, 0x72, 0x78, 0x14, 0x17, 0xff, 0x33, - 0x2a, 0xe0, 0x4d, 0x2b, 0x96, 0x8a, 0xe9, 0xe7, 0xf8, 0x8a, 0x71, 0x01, 0xca, 0xbc, 0xbe, 0x44, - 0x8b, 0x97, 0x7d, 0x47, 0xc0, 0xa1, 0x23, 0xe0, 0xb7, 0x23, 0xe0, 0xbb, 0x27, 0x83, 0x43, 0x4f, - 0x06, 0x3f, 0x3d, 0x19, 0xbc, 0x3d, 0x48, 0xe5, 0x57, 0xdb, 0xa6, 0xe2, 0xa6, 0xa5, 0x41, 0xcd, - 0x7d, 0x52, 0x78, 0xb2, 0x44, 0x77, 0xf4, 0x42, 0xac, 0xff, 0xdc, 0x08, 0xd7, 0x8c, 0xa2, 0x9e, - 0xc7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x08, 0xe7, 0x3e, 0x70, 0x73, 0x01, 0x00, 0x00, -} - -func (m *GasBalance) 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 *GasBalance) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GasBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MedianIndex != 0 { - i = encodeVarintGasBalance(dAtA, i, uint64(m.MedianIndex)) - i-- - dAtA[i] = 0x38 - } - if len(m.Balances) > 0 { - for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Balances[iNdEx]) - copy(dAtA[i:], m.Balances[iNdEx]) - i = encodeVarintGasBalance(dAtA, i, uint64(len(m.Balances[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(m.BlockNums) > 0 { - dAtA2 := make([]byte, len(m.BlockNums)*10) - var j1 int - for _, num := range m.BlockNums { - 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 = encodeVarintGasBalance(dAtA, i, uint64(j1)) - i-- - dAtA[i] = 0x2a - } - if len(m.Signers) > 0 { - for iNdEx := len(m.Signers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Signers[iNdEx]) - copy(dAtA[i:], m.Signers[iNdEx]) - i = encodeVarintGasBalance(dAtA, i, uint64(len(m.Signers[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintGasBalance(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0x1a - } - if len(m.Index) > 0 { - i -= len(m.Index) - copy(dAtA[i:], m.Index) - i = encodeVarintGasBalance(dAtA, i, uint64(len(m.Index))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintGasBalance(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGasBalance(dAtA []byte, offset int, v uint64) int { - offset -= sovGasBalance(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GasBalance) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovGasBalance(uint64(l)) - } - l = len(m.Index) - if l > 0 { - n += 1 + l + sovGasBalance(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovGasBalance(uint64(l)) - } - if len(m.Signers) > 0 { - for _, s := range m.Signers { - l = len(s) - n += 1 + l + sovGasBalance(uint64(l)) - } - } - if len(m.BlockNums) > 0 { - l = 0 - for _, e := range m.BlockNums { - l += sovGasBalance(uint64(e)) - } - n += 1 + sovGasBalance(uint64(l)) + l - } - if len(m.Balances) > 0 { - for _, s := range m.Balances { - l = len(s) - n += 1 + l + sovGasBalance(uint64(l)) - } - } - if m.MedianIndex != 0 { - n += 1 + sovGasBalance(uint64(m.MedianIndex)) - } - return n -} - -func sovGasBalance(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGasBalance(x uint64) (n int) { - return sovGasBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GasBalance) 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 ErrIntOverflowGasBalance - } - 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: GasBalance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GasBalance: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - 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 ErrInvalidLengthGasBalance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGasBalance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - 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 ErrInvalidLengthGasBalance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGasBalance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Index = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - 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 ErrInvalidLengthGasBalance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGasBalance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - 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 ErrInvalidLengthGasBalance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGasBalance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signers = append(m.Signers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.BlockNums = append(m.BlockNums, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthGasBalance - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthGasBalance - } - 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.BlockNums) == 0 { - m.BlockNums = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.BlockNums = append(m.BlockNums, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field BlockNums", wireType) - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - 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 ErrInvalidLengthGasBalance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGasBalance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Balances = append(m.Balances, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MedianIndex", wireType) - } - m.MedianIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGasBalance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MedianIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGasBalance(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGasBalance - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGasBalance(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, ErrIntOverflowGasBalance - } - 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, ErrIntOverflowGasBalance - } - 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, ErrIntOverflowGasBalance - } - 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, ErrInvalidLengthGasBalance - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGasBalance - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGasBalance - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGasBalance = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGasBalance = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGasBalance = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/crosschain/types/genesis.go b/x/crosschain/types/genesis.go index b84e953466..c2d5923c2a 100644 --- a/x/crosschain/types/genesis.go +++ b/x/crosschain/types/genesis.go @@ -16,13 +16,11 @@ func DefaultGenesis() *GenesisState { // this line is used by starport scaffolding # ibc/genesistype/default OutTxTrackerList: []OutTxTracker{}, InTxHashToCctxList: []InTxHashToCctx{}, - PermissionFlags: nil, // this line is used by starport scaffolding # genesis/types/default - Keygen: nil, GasPriceList: []*GasPrice{}, ChainNoncesList: []*ChainNonces{}, //CCTX: []*Send{}, - NodeAccountList: []*NodeAccount{}, + } } @@ -82,16 +80,6 @@ func (gs GenesisState) Validate() error { // sendIndexMap[elem.Index] = true //} - // Check for duplicated index in nodeAccount - nodeAccountIndexMap := make(map[string]bool) - - for _, elem := range gs.NodeAccountList { - if _, ok := nodeAccountIndexMap[elem.GetOperator()]; ok { - return fmt.Errorf("duplicated index for nodeAccount") - } - nodeAccountIndexMap[elem.GetOperator()] = true - } - return nil } diff --git a/x/crosschain/types/genesis.pb.go b/x/crosschain/types/genesis.pb.go index 54f3e6ea44..3bddac702d 100644 --- a/x/crosschain/types/genesis.pb.go +++ b/x/crosschain/types/genesis.pb.go @@ -27,15 +27,12 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` OutTxTrackerList []OutTxTracker `protobuf:"bytes,2,rep,name=outTxTrackerList,proto3" json:"outTxTrackerList"` - Keygen *Keygen `protobuf:"bytes,3,opt,name=keygen,proto3" json:"keygen,omitempty"` Tss *TSS `protobuf:"bytes,4,opt,name=tss,proto3" json:"tss,omitempty"` GasPriceList []*GasPrice `protobuf:"bytes,5,rep,name=gasPriceList,proto3" json:"gasPriceList,omitempty"` ChainNoncesList []*ChainNonces `protobuf:"bytes,6,rep,name=chainNoncesList,proto3" json:"chainNoncesList,omitempty"` CrossChainTxs []*CrossChainTx `protobuf:"bytes,7,rep,name=CrossChainTxs,proto3" json:"CrossChainTxs,omitempty"` - NodeAccountList []*NodeAccount `protobuf:"bytes,8,rep,name=nodeAccountList,proto3" json:"nodeAccountList,omitempty"` - LastBlockHeightList []*LastBlockHeight `protobuf:"bytes,9,rep,name=lastBlockHeightList,proto3" json:"lastBlockHeightList,omitempty"` - InTxHashToCctxList []InTxHashToCctx `protobuf:"bytes,10,rep,name=inTxHashToCctxList,proto3" json:"inTxHashToCctxList"` - PermissionFlags *PermissionFlags `protobuf:"bytes,11,opt,name=permissionFlags,proto3" json:"permissionFlags,omitempty"` + LastBlockHeightList []*LastBlockHeight `protobuf:"bytes,8,rep,name=lastBlockHeightList,proto3" json:"lastBlockHeightList,omitempty"` + InTxHashToCctxList []InTxHashToCctx `protobuf:"bytes,9,rep,name=inTxHashToCctxList,proto3" json:"inTxHashToCctxList"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -85,13 +82,6 @@ func (m *GenesisState) GetOutTxTrackerList() []OutTxTracker { return nil } -func (m *GenesisState) GetKeygen() *Keygen { - if m != nil { - return m.Keygen - } - return nil -} - func (m *GenesisState) GetTss() *TSS { if m != nil { return m.Tss @@ -120,13 +110,6 @@ func (m *GenesisState) GetCrossChainTxs() []*CrossChainTx { return nil } -func (m *GenesisState) GetNodeAccountList() []*NodeAccount { - if m != nil { - return m.NodeAccountList - } - return nil -} - func (m *GenesisState) GetLastBlockHeightList() []*LastBlockHeight { if m != nil { return m.LastBlockHeightList @@ -141,13 +124,6 @@ func (m *GenesisState) GetInTxHashToCctxList() []InTxHashToCctx { return nil } -func (m *GenesisState) GetPermissionFlags() *PermissionFlags { - if m != nil { - return m.PermissionFlags - } - return nil -} - func init() { proto.RegisterType((*GenesisState)(nil), "zetachain.zetacore.crosschain.GenesisState") } @@ -155,43 +131,37 @@ func init() { func init() { proto.RegisterFile("crosschain/genesis.proto", fileDescriptor_dd51403692d571f4) } var fileDescriptor_dd51403692d571f4 = []byte{ - // 561 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0x13, 0x5b, 0x53, 0x9d, 0x54, 0x2a, 0xa3, 0xe0, 0x12, 0xe8, 0xb6, 0x46, 0xc4, 0xa2, - 0x74, 0x83, 0xd5, 0xab, 0x07, 0x13, 0xb0, 0x95, 0x94, 0x1a, 0x37, 0x7b, 0x10, 0x41, 0xc6, 0xc9, - 0x38, 0xee, 0x2e, 0x49, 0x76, 0xc2, 0xce, 0x04, 0xb6, 0x7e, 0x0a, 0x0f, 0x7e, 0xa8, 0x1e, 0x7b, - 0xf4, 0x24, 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, 0x6d, 0xbd, 0xe8, - 0x67, 0xb0, 0xe7, 0x40, 0xbe, 0x0d, 0x64, 0xaf, 0x84, 0x7c, 0x5e, 0x74, 0xfa, 0xeb, 0x50, 0x98, - 0x21, 0xac, 0x1b, 0x38, 0xa3, 0x32, 0x0a, 0x44, 0x87, 0xa9, 0x0c, 0x12, 0x20, 0x48, 0x70, 0x5c, - 0x92, 0xe0, 0x6d, 0xc1, 0x68, 0xb6, 0x70, 0x0d, 0x0e, 0x7f, 0x40, 0x7b, 0xcb, 0x37, 0xe5, 0x8d, - 0x7e, 0x52, 0x9c, 0x3a, 0x2c, 0x55, 0x59, 0x0b, 0xbd, 0xa2, 0xcb, 0x5f, 0xc5, 0xb4, 0xbb, 0x57, - 0x33, 0xb7, 0x7a, 0x3d, 0x73, 0xab, 0xbf, 0x67, 0x6e, 0xf5, 0xfb, 0xdc, 0xad, 0x5c, 0xcf, 0xdd, - 0xca, 0xcf, 0xb9, 0x5b, 0xf9, 0xf8, 0x3c, 0x8c, 0x55, 0x34, 0x1d, 0x78, 0x4c, 0x8c, 0x5b, 0x1a, - 0x7d, 0x9c, 0x5f, 0xea, 0x45, 0x96, 0x56, 0xd6, 0xb2, 0xdf, 0xa7, 0xcb, 0x09, 0x97, 0x83, 0x1a, - 0x5c, 0xf5, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x3d, 0x8a, 0xdf, 0x8b, 0x05, 0x00, - 0x00, + // 470 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xd1, 0x6a, 0xd4, 0x40, + 0x14, 0x86, 0x37, 0xb6, 0x5d, 0x75, 0x5a, 0x51, 0x46, 0xc1, 0xb0, 0xd0, 0xb4, 0xac, 0x88, 0x45, + 0x69, 0x82, 0xd5, 0x27, 0xd8, 0x5c, 0xb4, 0xd2, 0xa2, 0x35, 0x9b, 0x2b, 0x41, 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0x08, 0xbc, 0xab, 0x45, 0xe0, 0xfd, 0x5c, 0x04, 0xde, 0xd7, + 0x65, 0x30, 0xb8, 0x5a, 0x06, 0x83, 0xef, 0xcb, 0x60, 0xf0, 0xe1, 0x65, 0x56, 0x40, 0x3e, 0x9f, + 0x85, 0x42, 0x5d, 0x44, 0x66, 0xc4, 0x7e, 0x7b, 0xe5, 0xab, 0x69, 0x51, 0x13, 0xb9, 0xff, 0xc8, + 0xcf, 0x95, 0xd4, 0xb3, 0x21, 0xde, 0xfe, 0xab, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x60, 0x9a, + 0x57, 0x31, 0x41, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -214,18 +184,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.PermissionFlags != nil { - { - size, err := m.PermissionFlags.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } if len(m.InTxHashToCctxList) > 0 { for iNdEx := len(m.InTxHashToCctxList) - 1; iNdEx >= 0; iNdEx-- { { @@ -237,7 +195,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x52 + dAtA[i] = 0x4a } } if len(m.LastBlockHeightList) > 0 { @@ -251,20 +209,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x4a - } - } - if len(m.NodeAccountList) > 0 { - for iNdEx := len(m.NodeAccountList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NodeAccountList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x42 } } @@ -322,18 +266,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.Keygen != nil { - { - size, err := m.Keygen.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } if len(m.OutTxTrackerList) > 0 { for iNdEx := len(m.OutTxTrackerList) - 1; iNdEx >= 0; iNdEx-- { { @@ -386,10 +318,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if m.Keygen != nil { - l = m.Keygen.Size() - n += 1 + l + sovGenesis(uint64(l)) - } if m.Tss != nil { l = m.Tss.Size() n += 1 + l + sovGenesis(uint64(l)) @@ -412,12 +340,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if len(m.NodeAccountList) > 0 { - for _, e := range m.NodeAccountList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } if len(m.LastBlockHeightList) > 0 { for _, e := range m.LastBlockHeightList { l = e.Size() @@ -430,10 +352,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if m.PermissionFlags != nil { - l = m.PermissionFlags.Size() - n += 1 + l + sovGenesis(uint64(l)) - } return n } @@ -539,42 +457,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keygen", 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 - } - if m.Keygen == nil { - m.Keygen = &Keygen{} - } - if err := m.Keygen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Tss", wireType) @@ -714,40 +596,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAccountList", 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.NodeAccountList = append(m.NodeAccountList, &NodeAccount{}) - if err := m.NodeAccountList[len(m.NodeAccountList)-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 LastBlockHeightList", wireType) } @@ -781,7 +629,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 10: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InTxHashToCctxList", wireType) } @@ -815,42 +663,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PermissionFlags", 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 - } - if m.PermissionFlags == nil { - m.PermissionFlags = &PermissionFlags{} - } - if err := m.PermissionFlags.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/crosschain/types/genesis_test.go b/x/crosschain/types/genesis_test.go index 61f41e7d11..632a3811e4 100644 --- a/x/crosschain/types/genesis_test.go +++ b/x/crosschain/types/genesis_test.go @@ -46,9 +46,9 @@ func TestGenesisState_Validate(t *testing.T) { InTxHash: "1", }, }, - PermissionFlags: &types.PermissionFlags{ - IsInboundEnabled: true, - }, + //PermissionFlags: &types.PermissionFlags{ + // IsInboundEnabled: true, + //}, // this line is used by starport scaffolding # types/genesis/validField }, valid: true, diff --git a/x/crosschain/types/keys.go b/x/crosschain/types/keys.go index dbd0f64bae..d25eee8be4 100644 --- a/x/crosschain/types/keys.go +++ b/x/crosschain/types/keys.go @@ -35,9 +35,9 @@ func KeyPrefix(p string) []byte { } const ( - TxinKey = "Txin-value-" - TxinVoterKey = "TxinVoter-value-" - NodeAccountKey = "NodeAccount-value-" + TxinKey = "Txin-value-" + TxinVoterKey = "TxinVoter-value-" + TxoutKey = "Txout-value-" TxoutCountKey = "Txout-count-" TxoutConfirmationKey = "TxoutConfirmation-value-" @@ -48,10 +48,10 @@ const ( ChainNoncesKey = "ChainNonces-value-" GasPriceKey = "GasPrice-value-" - GasBalanceKey = "GasBalance-value-" - TSSKey = "TSS-value-" - TSSVoterKey = "TSSVoter-value-" - KeygenKey = "Keygen-value-" + GasBalanceKey = "GasBalance-value-" + TSSKey = "TSS-value-" + TSSVoterKey = "TSSVoter-value-" + OutTxTrackerKeyPrefix = "OutTxTracker-value-" NonceToCctxKeyPrefix = "NonceToCctx-value-" @@ -88,7 +88,3 @@ var ( ModuleAddressEVM = common.BytesToAddress(ModuleAddress.Bytes()) //0xB73C0Aac4C1E606C6E495d848196355e6CB30381 ) - -const ( - PermissionFlagsKey = "PermissionFlags-value-" -) diff --git a/x/crosschain/types/query.pb.go b/x/crosschain/types/query.pb.go index 3657aef87f..4fe2baf49f 100644 --- a/x/crosschain/types/query.pb.go +++ b/x/crosschain/types/query.pb.go @@ -593,86 +593,6 @@ func (m *QueryAllInTxHashToCctxResponse) GetPagination() *query.PageResponse { return nil } -type QueryGetPermissionFlagsRequest struct { -} - -func (m *QueryGetPermissionFlagsRequest) Reset() { *m = QueryGetPermissionFlagsRequest{} } -func (m *QueryGetPermissionFlagsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPermissionFlagsRequest) ProtoMessage() {} -func (*QueryGetPermissionFlagsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{12} -} -func (m *QueryGetPermissionFlagsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetPermissionFlagsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetPermissionFlagsRequest.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 *QueryGetPermissionFlagsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPermissionFlagsRequest.Merge(m, src) -} -func (m *QueryGetPermissionFlagsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetPermissionFlagsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPermissionFlagsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetPermissionFlagsRequest proto.InternalMessageInfo - -type QueryGetPermissionFlagsResponse struct { - PermissionFlags PermissionFlags `protobuf:"bytes,1,opt,name=PermissionFlags,proto3" json:"PermissionFlags"` -} - -func (m *QueryGetPermissionFlagsResponse) Reset() { *m = QueryGetPermissionFlagsResponse{} } -func (m *QueryGetPermissionFlagsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPermissionFlagsResponse) ProtoMessage() {} -func (*QueryGetPermissionFlagsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{13} -} -func (m *QueryGetPermissionFlagsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetPermissionFlagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetPermissionFlagsResponse.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 *QueryGetPermissionFlagsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPermissionFlagsResponse.Merge(m, src) -} -func (m *QueryGetPermissionFlagsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetPermissionFlagsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPermissionFlagsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetPermissionFlagsResponse proto.InternalMessageInfo - -func (m *QueryGetPermissionFlagsResponse) GetPermissionFlags() PermissionFlags { - if m != nil { - return m.PermissionFlags - } - return PermissionFlags{} -} - type QueryGetTssAddressRequest struct { } @@ -680,7 +600,7 @@ func (m *QueryGetTssAddressRequest) Reset() { *m = QueryGetTssAddressReq func (m *QueryGetTssAddressRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetTssAddressRequest) ProtoMessage() {} func (*QueryGetTssAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{14} + return fileDescriptor_65a992045e92a606, []int{12} } func (m *QueryGetTssAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -718,7 +638,7 @@ func (m *QueryGetTssAddressResponse) Reset() { *m = QueryGetTssAddressRe func (m *QueryGetTssAddressResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetTssAddressResponse) ProtoMessage() {} func (*QueryGetTssAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{15} + return fileDescriptor_65a992045e92a606, []int{13} } func (m *QueryGetTssAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -761,87 +681,6 @@ func (m *QueryGetTssAddressResponse) GetBtc() string { return "" } -// this line is used by starport scaffolding # 3 -type QueryGetKeygenRequest struct { -} - -func (m *QueryGetKeygenRequest) Reset() { *m = QueryGetKeygenRequest{} } -func (m *QueryGetKeygenRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetKeygenRequest) ProtoMessage() {} -func (*QueryGetKeygenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{16} -} -func (m *QueryGetKeygenRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetKeygenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetKeygenRequest.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 *QueryGetKeygenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetKeygenRequest.Merge(m, src) -} -func (m *QueryGetKeygenRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetKeygenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetKeygenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetKeygenRequest proto.InternalMessageInfo - -type QueryGetKeygenResponse struct { - Keygen *Keygen `protobuf:"bytes,1,opt,name=Keygen,proto3" json:"Keygen,omitempty"` -} - -func (m *QueryGetKeygenResponse) Reset() { *m = QueryGetKeygenResponse{} } -func (m *QueryGetKeygenResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetKeygenResponse) ProtoMessage() {} -func (*QueryGetKeygenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{17} -} -func (m *QueryGetKeygenResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetKeygenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetKeygenResponse.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 *QueryGetKeygenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetKeygenResponse.Merge(m, src) -} -func (m *QueryGetKeygenResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetKeygenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetKeygenResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetKeygenResponse proto.InternalMessageInfo - -func (m *QueryGetKeygenResponse) GetKeygen() *Keygen { - if m != nil { - return m.Keygen - } - return nil -} - type QueryGetTSSRequest struct { } @@ -849,7 +688,7 @@ func (m *QueryGetTSSRequest) Reset() { *m = QueryGetTSSRequest{} } func (m *QueryGetTSSRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetTSSRequest) ProtoMessage() {} func (*QueryGetTSSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{18} + return fileDescriptor_65a992045e92a606, []int{14} } func (m *QueryGetTSSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -886,7 +725,7 @@ func (m *QueryGetTSSResponse) Reset() { *m = QueryGetTSSResponse{} } func (m *QueryGetTSSResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetTSSResponse) ProtoMessage() {} func (*QueryGetTSSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{19} + return fileDescriptor_65a992045e92a606, []int{15} } func (m *QueryGetTSSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -930,7 +769,7 @@ func (m *QueryGetGasPriceRequest) Reset() { *m = QueryGetGasPriceRequest func (m *QueryGetGasPriceRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetGasPriceRequest) ProtoMessage() {} func (*QueryGetGasPriceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{20} + return fileDescriptor_65a992045e92a606, []int{16} } func (m *QueryGetGasPriceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -974,7 +813,7 @@ func (m *QueryGetGasPriceResponse) Reset() { *m = QueryGetGasPriceRespon func (m *QueryGetGasPriceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetGasPriceResponse) ProtoMessage() {} func (*QueryGetGasPriceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{21} + return fileDescriptor_65a992045e92a606, []int{17} } func (m *QueryGetGasPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1018,7 +857,7 @@ func (m *QueryAllGasPriceRequest) Reset() { *m = QueryAllGasPriceRequest func (m *QueryAllGasPriceRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllGasPriceRequest) ProtoMessage() {} func (*QueryAllGasPriceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{22} + return fileDescriptor_65a992045e92a606, []int{18} } func (m *QueryAllGasPriceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1063,7 +902,7 @@ func (m *QueryAllGasPriceResponse) Reset() { *m = QueryAllGasPriceRespon func (m *QueryAllGasPriceResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllGasPriceResponse) ProtoMessage() {} func (*QueryAllGasPriceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{23} + return fileDescriptor_65a992045e92a606, []int{19} } func (m *QueryAllGasPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1114,7 +953,7 @@ func (m *QueryGetChainNoncesRequest) Reset() { *m = QueryGetChainNoncesR func (m *QueryGetChainNoncesRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetChainNoncesRequest) ProtoMessage() {} func (*QueryGetChainNoncesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{24} + return fileDescriptor_65a992045e92a606, []int{20} } func (m *QueryGetChainNoncesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1158,7 +997,7 @@ func (m *QueryGetChainNoncesResponse) Reset() { *m = QueryGetChainNonces func (m *QueryGetChainNoncesResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetChainNoncesResponse) ProtoMessage() {} func (*QueryGetChainNoncesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{25} + return fileDescriptor_65a992045e92a606, []int{21} } func (m *QueryGetChainNoncesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1202,7 +1041,7 @@ func (m *QueryAllChainNoncesRequest) Reset() { *m = QueryAllChainNoncesR func (m *QueryAllChainNoncesRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllChainNoncesRequest) ProtoMessage() {} func (*QueryAllChainNoncesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{26} + return fileDescriptor_65a992045e92a606, []int{22} } func (m *QueryAllChainNoncesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1247,7 +1086,7 @@ func (m *QueryAllChainNoncesResponse) Reset() { *m = QueryAllChainNonces func (m *QueryAllChainNoncesResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllChainNoncesResponse) ProtoMessage() {} func (*QueryAllChainNoncesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{27} + return fileDescriptor_65a992045e92a606, []int{23} } func (m *QueryAllChainNoncesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1297,7 +1136,7 @@ func (m *QueryAllPendingNoncesRequest) Reset() { *m = QueryAllPendingNon func (m *QueryAllPendingNoncesRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllPendingNoncesRequest) ProtoMessage() {} func (*QueryAllPendingNoncesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{28} + return fileDescriptor_65a992045e92a606, []int{24} } func (m *QueryAllPendingNoncesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1334,7 +1173,7 @@ func (m *QueryAllPendingNoncesResponse) Reset() { *m = QueryAllPendingNo func (m *QueryAllPendingNoncesResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllPendingNoncesResponse) ProtoMessage() {} func (*QueryAllPendingNoncesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{29} + return fileDescriptor_65a992045e92a606, []int{25} } func (m *QueryAllPendingNoncesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1378,7 +1217,7 @@ func (m *QueryGetLastBlockHeightRequest) Reset() { *m = QueryGetLastBloc func (m *QueryGetLastBlockHeightRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetLastBlockHeightRequest) ProtoMessage() {} func (*QueryGetLastBlockHeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{30} + return fileDescriptor_65a992045e92a606, []int{26} } func (m *QueryGetLastBlockHeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1422,7 +1261,7 @@ func (m *QueryGetLastBlockHeightResponse) Reset() { *m = QueryGetLastBlo func (m *QueryGetLastBlockHeightResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetLastBlockHeightResponse) ProtoMessage() {} func (*QueryGetLastBlockHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{31} + return fileDescriptor_65a992045e92a606, []int{27} } func (m *QueryGetLastBlockHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1466,7 +1305,7 @@ func (m *QueryAllLastBlockHeightRequest) Reset() { *m = QueryAllLastBloc func (m *QueryAllLastBlockHeightRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllLastBlockHeightRequest) ProtoMessage() {} func (*QueryAllLastBlockHeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{32} + return fileDescriptor_65a992045e92a606, []int{28} } func (m *QueryAllLastBlockHeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1511,7 +1350,7 @@ func (m *QueryAllLastBlockHeightResponse) Reset() { *m = QueryAllLastBlo func (m *QueryAllLastBlockHeightResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllLastBlockHeightResponse) ProtoMessage() {} func (*QueryAllLastBlockHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{33} + return fileDescriptor_65a992045e92a606, []int{29} } func (m *QueryAllLastBlockHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1562,7 +1401,7 @@ func (m *QueryGetCctxRequest) Reset() { *m = QueryGetCctxRequest{} } func (m *QueryGetCctxRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetCctxRequest) ProtoMessage() {} func (*QueryGetCctxRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{34} + return fileDescriptor_65a992045e92a606, []int{30} } func (m *QueryGetCctxRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1606,7 +1445,7 @@ func (m *QueryGetCctxResponse) Reset() { *m = QueryGetCctxResponse{} } func (m *QueryGetCctxResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetCctxResponse) ProtoMessage() {} func (*QueryGetCctxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{35} + return fileDescriptor_65a992045e92a606, []int{31} } func (m *QueryGetCctxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1650,7 +1489,7 @@ func (m *QueryAllCctxRequest) Reset() { *m = QueryAllCctxRequest{} } func (m *QueryAllCctxRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllCctxRequest) ProtoMessage() {} func (*QueryAllCctxRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{36} + return fileDescriptor_65a992045e92a606, []int{32} } func (m *QueryAllCctxRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1695,7 +1534,7 @@ func (m *QueryAllCctxResponse) Reset() { *m = QueryAllCctxResponse{} } func (m *QueryAllCctxResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllCctxResponse) ProtoMessage() {} func (*QueryAllCctxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{37} + return fileDescriptor_65a992045e92a606, []int{33} } func (m *QueryAllCctxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1747,7 +1586,7 @@ func (m *QueryAllCctxPendingRequest) Reset() { *m = QueryAllCctxPendingR func (m *QueryAllCctxPendingRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllCctxPendingRequest) ProtoMessage() {} func (*QueryAllCctxPendingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{38} + return fileDescriptor_65a992045e92a606, []int{34} } func (m *QueryAllCctxPendingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1799,7 +1638,7 @@ func (m *QueryAllCctxPendingResponse) Reset() { *m = QueryAllCctxPending func (m *QueryAllCctxPendingResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllCctxPendingResponse) ProtoMessage() {} func (*QueryAllCctxPendingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{39} + return fileDescriptor_65a992045e92a606, []int{35} } func (m *QueryAllCctxPendingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1842,22 +1681,21 @@ func (m *QueryAllCctxPendingResponse) GetPagination() *query.PageResponse { return nil } -type QueryGetNodeAccountRequest struct { - Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` +type QueryLastZetaHeightRequest struct { } -func (m *QueryGetNodeAccountRequest) Reset() { *m = QueryGetNodeAccountRequest{} } -func (m *QueryGetNodeAccountRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetNodeAccountRequest) ProtoMessage() {} -func (*QueryGetNodeAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{40} +func (m *QueryLastZetaHeightRequest) Reset() { *m = QueryLastZetaHeightRequest{} } +func (m *QueryLastZetaHeightRequest) String() string { return proto.CompactTextString(m) } +func (*QueryLastZetaHeightRequest) ProtoMessage() {} +func (*QueryLastZetaHeightRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_65a992045e92a606, []int{36} } -func (m *QueryGetNodeAccountRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryLastZetaHeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetNodeAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLastZetaHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetNodeAccountRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLastZetaHeightRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1867,41 +1705,34 @@ func (m *QueryGetNodeAccountRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryGetNodeAccountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetNodeAccountRequest.Merge(m, src) +func (m *QueryLastZetaHeightRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLastZetaHeightRequest.Merge(m, src) } -func (m *QueryGetNodeAccountRequest) XXX_Size() int { +func (m *QueryLastZetaHeightRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetNodeAccountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetNodeAccountRequest.DiscardUnknown(m) +func (m *QueryLastZetaHeightRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLastZetaHeightRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetNodeAccountRequest proto.InternalMessageInfo - -func (m *QueryGetNodeAccountRequest) GetIndex() string { - if m != nil { - return m.Index - } - return "" -} +var xxx_messageInfo_QueryLastZetaHeightRequest proto.InternalMessageInfo -type QueryGetNodeAccountResponse struct { - NodeAccount *NodeAccount `protobuf:"bytes,1,opt,name=NodeAccount,proto3" json:"NodeAccount,omitempty"` +type QueryLastZetaHeightResponse struct { + Height int64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` } -func (m *QueryGetNodeAccountResponse) Reset() { *m = QueryGetNodeAccountResponse{} } -func (m *QueryGetNodeAccountResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetNodeAccountResponse) ProtoMessage() {} -func (*QueryGetNodeAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{41} +func (m *QueryLastZetaHeightResponse) Reset() { *m = QueryLastZetaHeightResponse{} } +func (m *QueryLastZetaHeightResponse) String() string { return proto.CompactTextString(m) } +func (*QueryLastZetaHeightResponse) ProtoMessage() {} +func (*QueryLastZetaHeightResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_65a992045e92a606, []int{37} } -func (m *QueryGetNodeAccountResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryLastZetaHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetNodeAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLastZetaHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetNodeAccountResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLastZetaHeightResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1911,41 +1742,42 @@ func (m *QueryGetNodeAccountResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetNodeAccountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetNodeAccountResponse.Merge(m, src) +func (m *QueryLastZetaHeightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLastZetaHeightResponse.Merge(m, src) } -func (m *QueryGetNodeAccountResponse) XXX_Size() int { +func (m *QueryLastZetaHeightResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetNodeAccountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetNodeAccountResponse.DiscardUnknown(m) +func (m *QueryLastZetaHeightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLastZetaHeightResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetNodeAccountResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryLastZetaHeightResponse proto.InternalMessageInfo -func (m *QueryGetNodeAccountResponse) GetNodeAccount() *NodeAccount { +func (m *QueryLastZetaHeightResponse) GetHeight() int64 { if m != nil { - return m.NodeAccount + return m.Height } - return nil + return 0 } -type QueryAllNodeAccountRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +type QueryConvertGasToZetaRequest struct { + Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` + GasLimit string `protobuf:"bytes,2,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` } -func (m *QueryAllNodeAccountRequest) Reset() { *m = QueryAllNodeAccountRequest{} } -func (m *QueryAllNodeAccountRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllNodeAccountRequest) ProtoMessage() {} -func (*QueryAllNodeAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{42} +func (m *QueryConvertGasToZetaRequest) Reset() { *m = QueryConvertGasToZetaRequest{} } +func (m *QueryConvertGasToZetaRequest) String() string { return proto.CompactTextString(m) } +func (*QueryConvertGasToZetaRequest) ProtoMessage() {} +func (*QueryConvertGasToZetaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_65a992045e92a606, []int{38} } -func (m *QueryAllNodeAccountRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryConvertGasToZetaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllNodeAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryConvertGasToZetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllNodeAccountRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryConvertGasToZetaRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1955,42 +1787,50 @@ func (m *QueryAllNodeAccountRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryAllNodeAccountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllNodeAccountRequest.Merge(m, src) +func (m *QueryConvertGasToZetaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryConvertGasToZetaRequest.Merge(m, src) } -func (m *QueryAllNodeAccountRequest) XXX_Size() int { +func (m *QueryConvertGasToZetaRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllNodeAccountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllNodeAccountRequest.DiscardUnknown(m) +func (m *QueryConvertGasToZetaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryConvertGasToZetaRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllNodeAccountRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryConvertGasToZetaRequest proto.InternalMessageInfo -func (m *QueryAllNodeAccountRequest) GetPagination() *query.PageRequest { +func (m *QueryConvertGasToZetaRequest) GetChain() string { if m != nil { - return m.Pagination + return m.Chain } - return nil + return "" } -type QueryAllNodeAccountResponse struct { - NodeAccount []*NodeAccount `protobuf:"bytes,1,rep,name=NodeAccount,proto3" json:"NodeAccount,omitempty"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +func (m *QueryConvertGasToZetaRequest) GetGasLimit() string { + if m != nil { + return m.GasLimit + } + return "" } -func (m *QueryAllNodeAccountResponse) Reset() { *m = QueryAllNodeAccountResponse{} } -func (m *QueryAllNodeAccountResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllNodeAccountResponse) ProtoMessage() {} -func (*QueryAllNodeAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{43} +type QueryConvertGasToZetaResponse struct { + OutboundGasInZeta string `protobuf:"bytes,1,opt,name=outboundGasInZeta,proto3" json:"outboundGasInZeta,omitempty"` + ProtocolFeeInZeta string `protobuf:"bytes,2,opt,name=protocolFeeInZeta,proto3" json:"protocolFeeInZeta,omitempty"` + ZetaBlockHeight uint64 `protobuf:"varint,3,opt,name=ZetaBlockHeight,proto3" json:"ZetaBlockHeight,omitempty"` } -func (m *QueryAllNodeAccountResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryConvertGasToZetaResponse) Reset() { *m = QueryConvertGasToZetaResponse{} } +func (m *QueryConvertGasToZetaResponse) String() string { return proto.CompactTextString(m) } +func (*QueryConvertGasToZetaResponse) ProtoMessage() {} +func (*QueryConvertGasToZetaResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_65a992045e92a606, []int{39} +} +func (m *QueryConvertGasToZetaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllNodeAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryConvertGasToZetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllNodeAccountResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryConvertGasToZetaResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2000,222 +1840,37 @@ func (m *QueryAllNodeAccountResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllNodeAccountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllNodeAccountResponse.Merge(m, src) +func (m *QueryConvertGasToZetaResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryConvertGasToZetaResponse.Merge(m, src) } -func (m *QueryAllNodeAccountResponse) XXX_Size() int { +func (m *QueryConvertGasToZetaResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllNodeAccountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllNodeAccountResponse.DiscardUnknown(m) +func (m *QueryConvertGasToZetaResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryConvertGasToZetaResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllNodeAccountResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryConvertGasToZetaResponse proto.InternalMessageInfo -func (m *QueryAllNodeAccountResponse) GetNodeAccount() []*NodeAccount { +func (m *QueryConvertGasToZetaResponse) GetOutboundGasInZeta() string { if m != nil { - return m.NodeAccount + return m.OutboundGasInZeta } - return nil + return "" } -func (m *QueryAllNodeAccountResponse) GetPagination() *query.PageResponse { +func (m *QueryConvertGasToZetaResponse) GetProtocolFeeInZeta() string { if m != nil { - return m.Pagination + return m.ProtocolFeeInZeta } - return nil + return "" } -type QueryLastZetaHeightRequest struct { -} - -func (m *QueryLastZetaHeightRequest) Reset() { *m = QueryLastZetaHeightRequest{} } -func (m *QueryLastZetaHeightRequest) String() string { return proto.CompactTextString(m) } -func (*QueryLastZetaHeightRequest) ProtoMessage() {} -func (*QueryLastZetaHeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{44} -} -func (m *QueryLastZetaHeightRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryLastZetaHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryLastZetaHeightRequest.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 *QueryLastZetaHeightRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLastZetaHeightRequest.Merge(m, src) -} -func (m *QueryLastZetaHeightRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryLastZetaHeightRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLastZetaHeightRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryLastZetaHeightRequest proto.InternalMessageInfo - -type QueryLastZetaHeightResponse struct { - Height int64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` -} - -func (m *QueryLastZetaHeightResponse) Reset() { *m = QueryLastZetaHeightResponse{} } -func (m *QueryLastZetaHeightResponse) String() string { return proto.CompactTextString(m) } -func (*QueryLastZetaHeightResponse) ProtoMessage() {} -func (*QueryLastZetaHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{45} -} -func (m *QueryLastZetaHeightResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryLastZetaHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryLastZetaHeightResponse.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 *QueryLastZetaHeightResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLastZetaHeightResponse.Merge(m, src) -} -func (m *QueryLastZetaHeightResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryLastZetaHeightResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLastZetaHeightResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryLastZetaHeightResponse proto.InternalMessageInfo - -func (m *QueryLastZetaHeightResponse) GetHeight() int64 { - if m != nil { - return m.Height - } - return 0 -} - -type QueryConvertGasToZetaRequest struct { - Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` - GasLimit string `protobuf:"bytes,2,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` -} - -func (m *QueryConvertGasToZetaRequest) Reset() { *m = QueryConvertGasToZetaRequest{} } -func (m *QueryConvertGasToZetaRequest) String() string { return proto.CompactTextString(m) } -func (*QueryConvertGasToZetaRequest) ProtoMessage() {} -func (*QueryConvertGasToZetaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{46} -} -func (m *QueryConvertGasToZetaRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryConvertGasToZetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryConvertGasToZetaRequest.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 *QueryConvertGasToZetaRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryConvertGasToZetaRequest.Merge(m, src) -} -func (m *QueryConvertGasToZetaRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryConvertGasToZetaRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryConvertGasToZetaRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryConvertGasToZetaRequest proto.InternalMessageInfo - -func (m *QueryConvertGasToZetaRequest) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *QueryConvertGasToZetaRequest) GetGasLimit() string { - if m != nil { - return m.GasLimit - } - return "" -} - -type QueryConvertGasToZetaResponse struct { - OutboundGasInZeta string `protobuf:"bytes,1,opt,name=outboundGasInZeta,proto3" json:"outboundGasInZeta,omitempty"` - ProtocolFeeInZeta string `protobuf:"bytes,2,opt,name=protocolFeeInZeta,proto3" json:"protocolFeeInZeta,omitempty"` - ZetaBlockHeight uint64 `protobuf:"varint,3,opt,name=ZetaBlockHeight,proto3" json:"ZetaBlockHeight,omitempty"` -} - -func (m *QueryConvertGasToZetaResponse) Reset() { *m = QueryConvertGasToZetaResponse{} } -func (m *QueryConvertGasToZetaResponse) String() string { return proto.CompactTextString(m) } -func (*QueryConvertGasToZetaResponse) ProtoMessage() {} -func (*QueryConvertGasToZetaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{47} -} -func (m *QueryConvertGasToZetaResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryConvertGasToZetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryConvertGasToZetaResponse.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 *QueryConvertGasToZetaResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryConvertGasToZetaResponse.Merge(m, src) -} -func (m *QueryConvertGasToZetaResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryConvertGasToZetaResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryConvertGasToZetaResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryConvertGasToZetaResponse proto.InternalMessageInfo - -func (m *QueryConvertGasToZetaResponse) GetOutboundGasInZeta() string { - if m != nil { - return m.OutboundGasInZeta - } - return "" -} - -func (m *QueryConvertGasToZetaResponse) GetProtocolFeeInZeta() string { - if m != nil { - return m.ProtocolFeeInZeta - } - return "" -} - -func (m *QueryConvertGasToZetaResponse) GetZetaBlockHeight() uint64 { - if m != nil { - return m.ZetaBlockHeight - } - return 0 +func (m *QueryConvertGasToZetaResponse) GetZetaBlockHeight() uint64 { + if m != nil { + return m.ZetaBlockHeight + } + return 0 } type QueryMessagePassingProtocolFeeRequest struct { @@ -2225,7 +1880,7 @@ func (m *QueryMessagePassingProtocolFeeRequest) Reset() { *m = QueryMess func (m *QueryMessagePassingProtocolFeeRequest) String() string { return proto.CompactTextString(m) } func (*QueryMessagePassingProtocolFeeRequest) ProtoMessage() {} func (*QueryMessagePassingProtocolFeeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{48} + return fileDescriptor_65a992045e92a606, []int{40} } func (m *QueryMessagePassingProtocolFeeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2264,7 +1919,7 @@ func (m *QueryMessagePassingProtocolFeeResponse) Reset() { func (m *QueryMessagePassingProtocolFeeResponse) String() string { return proto.CompactTextString(m) } func (*QueryMessagePassingProtocolFeeResponse) ProtoMessage() {} func (*QueryMessagePassingProtocolFeeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{49} + return fileDescriptor_65a992045e92a606, []int{41} } func (m *QueryMessagePassingProtocolFeeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2308,7 +1963,7 @@ func (m *QueryZEVMGetTransactionReceiptRequest) Reset() { *m = QueryZEVM func (m *QueryZEVMGetTransactionReceiptRequest) String() string { return proto.CompactTextString(m) } func (*QueryZEVMGetTransactionReceiptRequest) ProtoMessage() {} func (*QueryZEVMGetTransactionReceiptRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{50} + return fileDescriptor_65a992045e92a606, []int{42} } func (m *QueryZEVMGetTransactionReceiptRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2365,7 +2020,7 @@ func (m *QueryZEVMGetTransactionReceiptResponse) Reset() { func (m *QueryZEVMGetTransactionReceiptResponse) String() string { return proto.CompactTextString(m) } func (*QueryZEVMGetTransactionReceiptResponse) ProtoMessage() {} func (*QueryZEVMGetTransactionReceiptResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{51} + return fileDescriptor_65a992045e92a606, []int{43} } func (m *QueryZEVMGetTransactionReceiptResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2495,7 +2150,7 @@ func (m *Log) Reset() { *m = Log{} } func (m *Log) String() string { return proto.CompactTextString(m) } func (*Log) ProtoMessage() {} func (*Log) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{52} + return fileDescriptor_65a992045e92a606, []int{44} } func (m *Log) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2595,7 +2250,7 @@ func (m *QueryZEVMGetTransactionRequest) Reset() { *m = QueryZEVMGetTran func (m *QueryZEVMGetTransactionRequest) String() string { return proto.CompactTextString(m) } func (*QueryZEVMGetTransactionRequest) ProtoMessage() {} func (*QueryZEVMGetTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{53} + return fileDescriptor_65a992045e92a606, []int{45} } func (m *QueryZEVMGetTransactionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2655,7 +2310,7 @@ func (m *QueryZEVMGetTransactionResponse) Reset() { *m = QueryZEVMGetTra func (m *QueryZEVMGetTransactionResponse) String() string { return proto.CompactTextString(m) } func (*QueryZEVMGetTransactionResponse) ProtoMessage() {} func (*QueryZEVMGetTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{54} + return fileDescriptor_65a992045e92a606, []int{46} } func (m *QueryZEVMGetTransactionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2811,7 +2466,7 @@ func (m *QueryZEVMGetBlockByNumberRequest) Reset() { *m = QueryZEVMGetBl func (m *QueryZEVMGetBlockByNumberRequest) String() string { return proto.CompactTextString(m) } func (*QueryZEVMGetBlockByNumberRequest) ProtoMessage() {} func (*QueryZEVMGetBlockByNumberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{55} + return fileDescriptor_65a992045e92a606, []int{47} } func (m *QueryZEVMGetBlockByNumberRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2875,7 +2530,7 @@ func (m *QueryZEVMGetBlockByNumberResponse) Reset() { *m = QueryZEVMGetB func (m *QueryZEVMGetBlockByNumberResponse) String() string { return proto.CompactTextString(m) } func (*QueryZEVMGetBlockByNumberResponse) ProtoMessage() {} func (*QueryZEVMGetBlockByNumberResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65a992045e92a606, []int{56} + return fileDescriptor_65a992045e92a606, []int{48} } func (m *QueryZEVMGetBlockByNumberResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3064,12 +2719,8 @@ func init() { proto.RegisterType((*QueryGetInTxHashToCctxResponse)(nil), "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse") proto.RegisterType((*QueryAllInTxHashToCctxRequest)(nil), "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest") proto.RegisterType((*QueryAllInTxHashToCctxResponse)(nil), "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse") - proto.RegisterType((*QueryGetPermissionFlagsRequest)(nil), "zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest") - proto.RegisterType((*QueryGetPermissionFlagsResponse)(nil), "zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse") proto.RegisterType((*QueryGetTssAddressRequest)(nil), "zetachain.zetacore.crosschain.QueryGetTssAddressRequest") proto.RegisterType((*QueryGetTssAddressResponse)(nil), "zetachain.zetacore.crosschain.QueryGetTssAddressResponse") - proto.RegisterType((*QueryGetKeygenRequest)(nil), "zetachain.zetacore.crosschain.QueryGetKeygenRequest") - proto.RegisterType((*QueryGetKeygenResponse)(nil), "zetachain.zetacore.crosschain.QueryGetKeygenResponse") proto.RegisterType((*QueryGetTSSRequest)(nil), "zetachain.zetacore.crosschain.QueryGetTSSRequest") proto.RegisterType((*QueryGetTSSResponse)(nil), "zetachain.zetacore.crosschain.QueryGetTSSResponse") proto.RegisterType((*QueryGetGasPriceRequest)(nil), "zetachain.zetacore.crosschain.QueryGetGasPriceRequest") @@ -3092,10 +2743,6 @@ func init() { proto.RegisterType((*QueryAllCctxResponse)(nil), "zetachain.zetacore.crosschain.QueryAllCctxResponse") proto.RegisterType((*QueryAllCctxPendingRequest)(nil), "zetachain.zetacore.crosschain.QueryAllCctxPendingRequest") proto.RegisterType((*QueryAllCctxPendingResponse)(nil), "zetachain.zetacore.crosschain.QueryAllCctxPendingResponse") - proto.RegisterType((*QueryGetNodeAccountRequest)(nil), "zetachain.zetacore.crosschain.QueryGetNodeAccountRequest") - proto.RegisterType((*QueryGetNodeAccountResponse)(nil), "zetachain.zetacore.crosschain.QueryGetNodeAccountResponse") - proto.RegisterType((*QueryAllNodeAccountRequest)(nil), "zetachain.zetacore.crosschain.QueryAllNodeAccountRequest") - proto.RegisterType((*QueryAllNodeAccountResponse)(nil), "zetachain.zetacore.crosschain.QueryAllNodeAccountResponse") proto.RegisterType((*QueryLastZetaHeightRequest)(nil), "zetachain.zetacore.crosschain.QueryLastZetaHeightRequest") proto.RegisterType((*QueryLastZetaHeightResponse)(nil), "zetachain.zetacore.crosschain.QueryLastZetaHeightResponse") proto.RegisterType((*QueryConvertGasToZetaRequest)(nil), "zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest") @@ -3114,195 +2761,180 @@ func init() { func init() { proto.RegisterFile("crosschain/query.proto", fileDescriptor_65a992045e92a606) } var fileDescriptor_65a992045e92a606 = []byte{ - // 2995 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0x4f, 0x6f, 0x1b, 0xc7, - 0x15, 0xf7, 0x8a, 0x12, 0x25, 0x8d, 0xfe, 0x7a, 0xac, 0x38, 0x0c, 0x63, 0x8b, 0xce, 0x3a, 0xfe, - 0x13, 0xdb, 0x21, 0x63, 0xc5, 0x76, 0x12, 0xc7, 0x09, 0x2a, 0xd9, 0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cb, 0x87, 0xee, 0x5d, 0xb4, 0x1d, 0xb1, - 0xd5, 0xdc, 0x2c, 0x5b, 0x7e, 0x3d, 0xf5, 0x09, 0xb1, 0xa3, 0x4a, 0x15, 0xbb, 0x0d, 0xc6, 0x37, - 0xf3, 0x70, 0x65, 0x78, 0xf1, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x67, 0x9d, 0xf9, 0x06, 0x19, - 0x33, 0x00, 0x00, + // 2760 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcf, 0x6f, 0x1b, 0xc7, + 0xf5, 0xf7, 0x8a, 0x14, 0x25, 0x8d, 0x7e, 0x8f, 0x15, 0x87, 0x61, 0x64, 0xd1, 0x59, 0x47, 0x96, + 0x63, 0x3b, 0x64, 0xac, 0x24, 0x4e, 0xe2, 0x38, 0xc1, 0x57, 0xb2, 0x63, 0xc5, 0x88, 0x92, 0xe8, + 0xbb, 0x56, 0x8a, 0xc2, 0x45, 0x41, 0xac, 0x96, 0xe3, 0xd5, 0x22, 0x4b, 0x2e, 0xb3, 0x33, 0x14, + 0xa4, 0x18, 0xee, 0x21, 0x7f, 0x41, 0x80, 0x02, 0x2d, 0x50, 0xf4, 0x5a, 0xb4, 0x87, 0x1e, 0x0a, + 0x34, 0x68, 0x0a, 0x14, 0x48, 0x0f, 0x6d, 0xd3, 0x1c, 0x03, 0xe4, 0xd2, 0x5e, 0x88, 0x22, 0xee, + 0x89, 0xff, 0x41, 0x81, 0x1e, 0x8a, 0x79, 0xfb, 0x96, 0x3b, 0x4b, 0x2e, 0xc5, 0x35, 0xc5, 0x16, + 0xed, 0x65, 0x77, 0xe6, 0xcd, 0xbc, 0x37, 0x9f, 0xf7, 0xe6, 0xcd, 0x9b, 0xb7, 0xfb, 0xc8, 0x19, + 0xcb, 0xf7, 0x38, 0xb7, 0xf6, 0x4d, 0xa7, 0x5e, 0xfe, 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e, + 0x8c, 0x6d, 0xf3, 0x9d, 0xaf, 0xbe, 0x5d, 0xd1, 0xbe, 0xfe, 0x76, 0x45, 0xfb, 0xdb, 0xb7, 0x2b, + 0xda, 0xa7, 0x8f, 0x56, 0x4e, 0x7d, 0xfd, 0x68, 0xe5, 0xd4, 0x5f, 0x1e, 0xad, 0x9c, 0xba, 0x77, + 0xd5, 0x76, 0xc4, 0x7e, 0x73, 0xaf, 0x64, 0x79, 0x35, 0x55, 0x54, 0x88, 0xa7, 0x7c, 0xa8, 0x4a, + 0x15, 0x47, 0x0d, 0xc6, 0xf7, 0x72, 0x70, 0x83, 0xbd, 0xf8, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xf4, 0x50, 0x94, 0xa2, 0x02, 0x2d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3328,12 +2960,8 @@ type QueryClient interface { InTxHashToCctx(ctx context.Context, in *QueryGetInTxHashToCctxRequest, opts ...grpc.CallOption) (*QueryGetInTxHashToCctxResponse, error) // Queries a list of InTxHashToCctx items. InTxHashToCctxAll(ctx context.Context, in *QueryAllInTxHashToCctxRequest, opts ...grpc.CallOption) (*QueryAllInTxHashToCctxResponse, error) - // Queries a PermissionFlags by index. - PermissionFlags(ctx context.Context, in *QueryGetPermissionFlagsRequest, opts ...grpc.CallOption) (*QueryGetPermissionFlagsResponse, error) // Queries a list of GetTssAddress items. GetTssAddress(ctx context.Context, in *QueryGetTssAddressRequest, opts ...grpc.CallOption) (*QueryGetTssAddressResponse, error) - // Queries a keygen by index. - Keygen(ctx context.Context, in *QueryGetKeygenRequest, opts ...grpc.CallOption) (*QueryGetKeygenResponse, error) // Queries a tSS by index. TSS(ctx context.Context, in *QueryGetTSSRequest, opts ...grpc.CallOption) (*QueryGetTSSResponse, error) // Queries a gasPrice by index. @@ -3357,10 +2985,6 @@ type QueryClient interface { CctxAll(ctx context.Context, in *QueryAllCctxRequest, opts ...grpc.CallOption) (*QueryAllCctxResponse, error) // Queries a list of send items. CctxAllPending(ctx context.Context, in *QueryAllCctxPendingRequest, opts ...grpc.CallOption) (*QueryAllCctxPendingResponse, error) - // Queries a nodeAccount by index. - NodeAccount(ctx context.Context, in *QueryGetNodeAccountRequest, opts ...grpc.CallOption) (*QueryGetNodeAccountResponse, error) - // Queries a list of nodeAccount items. - NodeAccountAll(ctx context.Context, in *QueryAllNodeAccountRequest, opts ...grpc.CallOption) (*QueryAllNodeAccountResponse, error) // Queries a list of lastMetaHeight items. LastZetaHeight(ctx context.Context, in *QueryLastZetaHeightRequest, opts ...grpc.CallOption) (*QueryLastZetaHeightResponse, error) } @@ -3427,15 +3051,6 @@ func (c *queryClient) InTxHashToCctxAll(ctx context.Context, in *QueryAllInTxHas return out, nil } -func (c *queryClient) PermissionFlags(ctx context.Context, in *QueryGetPermissionFlagsRequest, opts ...grpc.CallOption) (*QueryGetPermissionFlagsResponse, error) { - out := new(QueryGetPermissionFlagsResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/PermissionFlags", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) GetTssAddress(ctx context.Context, in *QueryGetTssAddressRequest, opts ...grpc.CallOption) (*QueryGetTssAddressResponse, error) { out := new(QueryGetTssAddressResponse) err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/GetTssAddress", in, out, opts...) @@ -3445,15 +3060,6 @@ func (c *queryClient) GetTssAddress(ctx context.Context, in *QueryGetTssAddressR return out, nil } -func (c *queryClient) Keygen(ctx context.Context, in *QueryGetKeygenRequest, opts ...grpc.CallOption) (*QueryGetKeygenResponse, error) { - out := new(QueryGetKeygenResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/Keygen", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) TSS(ctx context.Context, in *QueryGetTSSRequest, opts ...grpc.CallOption) (*QueryGetTSSResponse, error) { out := new(QueryGetTSSResponse) err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/TSS", in, out, opts...) @@ -3571,24 +3177,6 @@ func (c *queryClient) CctxAllPending(ctx context.Context, in *QueryAllCctxPendin return out, nil } -func (c *queryClient) NodeAccount(ctx context.Context, in *QueryGetNodeAccountRequest, opts ...grpc.CallOption) (*QueryGetNodeAccountResponse, error) { - out := new(QueryGetNodeAccountResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/NodeAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) NodeAccountAll(ctx context.Context, in *QueryAllNodeAccountRequest, opts ...grpc.CallOption) (*QueryAllNodeAccountResponse, error) { - out := new(QueryAllNodeAccountResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/NodeAccountAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) LastZetaHeight(ctx context.Context, in *QueryLastZetaHeightRequest, opts ...grpc.CallOption) (*QueryLastZetaHeightResponse, error) { out := new(QueryLastZetaHeightResponse) err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Query/LastZetaHeight", in, out, opts...) @@ -3611,12 +3199,8 @@ type QueryServer interface { InTxHashToCctx(context.Context, *QueryGetInTxHashToCctxRequest) (*QueryGetInTxHashToCctxResponse, error) // Queries a list of InTxHashToCctx items. InTxHashToCctxAll(context.Context, *QueryAllInTxHashToCctxRequest) (*QueryAllInTxHashToCctxResponse, error) - // Queries a PermissionFlags by index. - PermissionFlags(context.Context, *QueryGetPermissionFlagsRequest) (*QueryGetPermissionFlagsResponse, error) // Queries a list of GetTssAddress items. GetTssAddress(context.Context, *QueryGetTssAddressRequest) (*QueryGetTssAddressResponse, error) - // Queries a keygen by index. - Keygen(context.Context, *QueryGetKeygenRequest) (*QueryGetKeygenResponse, error) // Queries a tSS by index. TSS(context.Context, *QueryGetTSSRequest) (*QueryGetTSSResponse, error) // Queries a gasPrice by index. @@ -3640,10 +3224,6 @@ type QueryServer interface { CctxAll(context.Context, *QueryAllCctxRequest) (*QueryAllCctxResponse, error) // Queries a list of send items. CctxAllPending(context.Context, *QueryAllCctxPendingRequest) (*QueryAllCctxPendingResponse, error) - // Queries a nodeAccount by index. - NodeAccount(context.Context, *QueryGetNodeAccountRequest) (*QueryGetNodeAccountResponse, error) - // Queries a list of nodeAccount items. - NodeAccountAll(context.Context, *QueryAllNodeAccountRequest) (*QueryAllNodeAccountResponse, error) // Queries a list of lastMetaHeight items. LastZetaHeight(context.Context, *QueryLastZetaHeightRequest) (*QueryLastZetaHeightResponse, error) } @@ -3670,15 +3250,9 @@ func (*UnimplementedQueryServer) InTxHashToCctx(ctx context.Context, req *QueryG func (*UnimplementedQueryServer) InTxHashToCctxAll(ctx context.Context, req *QueryAllInTxHashToCctxRequest) (*QueryAllInTxHashToCctxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InTxHashToCctxAll not implemented") } -func (*UnimplementedQueryServer) PermissionFlags(ctx context.Context, req *QueryGetPermissionFlagsRequest) (*QueryGetPermissionFlagsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PermissionFlags not implemented") -} func (*UnimplementedQueryServer) GetTssAddress(ctx context.Context, req *QueryGetTssAddressRequest) (*QueryGetTssAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTssAddress not implemented") } -func (*UnimplementedQueryServer) Keygen(ctx context.Context, req *QueryGetKeygenRequest) (*QueryGetKeygenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Keygen not implemented") -} func (*UnimplementedQueryServer) TSS(ctx context.Context, req *QueryGetTSSRequest) (*QueryGetTSSResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TSS not implemented") } @@ -3718,12 +3292,6 @@ func (*UnimplementedQueryServer) CctxAll(ctx context.Context, req *QueryAllCctxR func (*UnimplementedQueryServer) CctxAllPending(ctx context.Context, req *QueryAllCctxPendingRequest) (*QueryAllCctxPendingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CctxAllPending not implemented") } -func (*UnimplementedQueryServer) NodeAccount(ctx context.Context, req *QueryGetNodeAccountRequest) (*QueryGetNodeAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NodeAccount not implemented") -} -func (*UnimplementedQueryServer) NodeAccountAll(ctx context.Context, req *QueryAllNodeAccountRequest) (*QueryAllNodeAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NodeAccountAll not implemented") -} func (*UnimplementedQueryServer) LastZetaHeight(ctx context.Context, req *QueryLastZetaHeightRequest) (*QueryLastZetaHeightResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LastZetaHeight not implemented") } @@ -3840,24 +3408,6 @@ func _Query_InTxHashToCctxAll_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_PermissionFlags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPermissionFlagsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).PermissionFlags(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Query/PermissionFlags", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PermissionFlags(ctx, req.(*QueryGetPermissionFlagsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GetTssAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetTssAddressRequest) if err := dec(in); err != nil { @@ -3876,24 +3426,6 @@ func _Query_GetTssAddress_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } -func _Query_Keygen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetKeygenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Keygen(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Query/Keygen", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Keygen(ctx, req.(*QueryGetKeygenRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_TSS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetTSSRequest) if err := dec(in); err != nil { @@ -4128,53 +3660,17 @@ func _Query_CctxAllPending_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_NodeAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetNodeAccountRequest) +func _Query_LastZetaHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLastZetaHeightRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).NodeAccount(ctx, in) + return srv.(QueryServer).LastZetaHeight(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Query/NodeAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NodeAccount(ctx, req.(*QueryGetNodeAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_NodeAccountAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllNodeAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).NodeAccountAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Query/NodeAccountAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NodeAccountAll(ctx, req.(*QueryAllNodeAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_LastZetaHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryLastZetaHeightRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).LastZetaHeight(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Query/LastZetaHeight", + FullMethod: "/zetachain.zetacore.crosschain.Query/LastZetaHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LastZetaHeight(ctx, req.(*QueryLastZetaHeightRequest)) @@ -4210,18 +3706,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "InTxHashToCctxAll", Handler: _Query_InTxHashToCctxAll_Handler, }, - { - MethodName: "PermissionFlags", - Handler: _Query_PermissionFlags_Handler, - }, { MethodName: "GetTssAddress", Handler: _Query_GetTssAddress_Handler, }, - { - MethodName: "Keygen", - Handler: _Query_Keygen_Handler, - }, { MethodName: "TSS", Handler: _Query_TSS_Handler, @@ -4274,14 +3762,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "CctxAllPending", Handler: _Query_CctxAllPending_Handler, }, - { - MethodName: "NodeAccount", - Handler: _Query_NodeAccount_Handler, - }, - { - MethodName: "NodeAccountAll", - Handler: _Query_NodeAccountAll_Handler, - }, { MethodName: "LastZetaHeight", Handler: _Query_LastZetaHeight_Handler, @@ -4733,62 +4213,6 @@ func (m *QueryAllInTxHashToCctxResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryGetPermissionFlagsRequest) 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 *QueryGetPermissionFlagsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetPermissionFlagsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetPermissionFlagsResponse) 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 *QueryGetPermissionFlagsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetPermissionFlagsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.PermissionFlags.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - func (m *QueryGetTssAddressRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4849,64 +4273,6 @@ func (m *QueryGetTssAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *QueryGetKeygenRequest) 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 *QueryGetKeygenRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetKeygenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetKeygenResponse) 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 *QueryGetKeygenResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetKeygenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Keygen != nil { - { - size, err := m.Keygen.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *QueryGetTSSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5710,7 +5076,7 @@ func (m *QueryAllCctxPendingResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryGetNodeAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryLastZetaHeightRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5720,27 +5086,20 @@ func (m *QueryGetNodeAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetNodeAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLastZetaHeightRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetNodeAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLastZetaHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Index) > 0 { - i -= len(m.Index) - copy(dAtA[i:], m.Index) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Index))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *QueryGetNodeAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryLastZetaHeightResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5750,32 +5109,25 @@ func (m *QueryGetNodeAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetNodeAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLastZetaHeightResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetNodeAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLastZetaHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.NodeAccount != nil { - { - size, err := m.NodeAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if m.Height != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Height)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryAllNodeAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryConvertGasToZetaRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5785,32 +5137,34 @@ func (m *QueryAllNodeAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllNodeAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryConvertGasToZetaRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllNodeAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryConvertGasToZetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if len(m.GasLimit) > 0 { + i -= len(m.GasLimit) + copy(dAtA[i:], m.GasLimit) + i = encodeVarintQuery(dAtA, i, uint64(len(m.GasLimit))) + i-- + dAtA[i] = 0x12 + } + if len(m.Chain) > 0 { + i -= len(m.Chain) + copy(dAtA[i:], m.Chain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Chain))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryAllNodeAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryConvertGasToZetaResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5820,46 +5174,39 @@ func (m *QueryAllNodeAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllNodeAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryConvertGasToZetaResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllNodeAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryConvertGasToZetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if m.ZetaBlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ZetaBlockHeight)) + i-- + dAtA[i] = 0x18 + } + if len(m.ProtocolFeeInZeta) > 0 { + i -= len(m.ProtocolFeeInZeta) + copy(dAtA[i:], m.ProtocolFeeInZeta) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ProtocolFeeInZeta))) i-- dAtA[i] = 0x12 } - if len(m.NodeAccount) > 0 { - for iNdEx := len(m.NodeAccount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NodeAccount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if len(m.OutboundGasInZeta) > 0 { + i -= len(m.OutboundGasInZeta) + copy(dAtA[i:], m.OutboundGasInZeta) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OutboundGasInZeta))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryLastZetaHeightRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryMessagePassingProtocolFeeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5869,12 +5216,12 @@ func (m *QueryLastZetaHeightRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryLastZetaHeightRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryMessagePassingProtocolFeeRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLastZetaHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryMessagePassingProtocolFeeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5882,7 +5229,7 @@ func (m *QueryLastZetaHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *QueryLastZetaHeightResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryMessagePassingProtocolFeeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5892,25 +5239,27 @@ func (m *QueryLastZetaHeightResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryLastZetaHeightResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryMessagePassingProtocolFeeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLastZetaHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryMessagePassingProtocolFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Height != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Height)) + if len(m.FeeInZeta) > 0 { + i -= len(m.FeeInZeta) + copy(dAtA[i:], m.FeeInZeta) + i = encodeVarintQuery(dAtA, i, uint64(len(m.FeeInZeta))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryConvertGasToZetaRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryZEVMGetTransactionReceiptRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5920,152 +5269,20 @@ func (m *QueryConvertGasToZetaRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryConvertGasToZetaRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryZEVMGetTransactionReceiptRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryConvertGasToZetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryZEVMGetTransactionReceiptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.GasLimit) > 0 { - i -= len(m.GasLimit) - copy(dAtA[i:], m.GasLimit) - i = encodeVarintQuery(dAtA, i, uint64(len(m.GasLimit))) - i-- - dAtA[i] = 0x12 - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryConvertGasToZetaResponse) 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 *QueryConvertGasToZetaResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryConvertGasToZetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ZetaBlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ZetaBlockHeight)) - i-- - dAtA[i] = 0x18 - } - if len(m.ProtocolFeeInZeta) > 0 { - i -= len(m.ProtocolFeeInZeta) - copy(dAtA[i:], m.ProtocolFeeInZeta) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ProtocolFeeInZeta))) - i-- - dAtA[i] = 0x12 - } - if len(m.OutboundGasInZeta) > 0 { - i -= len(m.OutboundGasInZeta) - copy(dAtA[i:], m.OutboundGasInZeta) - i = encodeVarintQuery(dAtA, i, uint64(len(m.OutboundGasInZeta))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryMessagePassingProtocolFeeRequest) 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 *QueryMessagePassingProtocolFeeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMessagePassingProtocolFeeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryMessagePassingProtocolFeeResponse) 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 *QueryMessagePassingProtocolFeeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMessagePassingProtocolFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FeeInZeta) > 0 { - i -= len(m.FeeInZeta) - copy(dAtA[i:], m.FeeInZeta) - i = encodeVarintQuery(dAtA, i, uint64(len(m.FeeInZeta))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryZEVMGetTransactionReceiptRequest) 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 *QueryZEVMGetTransactionReceiptRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryZEVMGetTransactionReceiptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash))) + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash))) i-- dAtA[i] = 0xa } @@ -6843,26 +6060,6 @@ func (m *QueryAllInTxHashToCctxResponse) Size() (n int) { return n } -func (m *QueryGetPermissionFlagsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetPermissionFlagsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.PermissionFlags.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - func (m *QueryGetTssAddressRequest) Size() (n int) { if m == nil { return 0 @@ -6889,28 +6086,6 @@ func (m *QueryGetTssAddressResponse) Size() (n int) { return n } -func (m *QueryGetKeygenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetKeygenResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Keygen != nil { - l = m.Keygen.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func (m *QueryGetTSSRequest) Size() (n int) { if m == nil { return 0 @@ -7224,64 +6399,6 @@ func (m *QueryAllCctxPendingResponse) Size() (n int) { return n } -func (m *QueryGetNodeAccountRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Index) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetNodeAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NodeAccount != nil { - l = m.NodeAccount.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllNodeAccountRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllNodeAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NodeAccount) > 0 { - for _, e := range m.NodeAccount { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func (m *QueryLastZetaHeightRequest) Size() (n int) { if m == nil { return 0 @@ -8790,7 +7907,7 @@ func (m *QueryAllInTxHashToCctxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPermissionFlagsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGetTssAddressRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8813,10 +7930,10 @@ func (m *QueryGetPermissionFlagsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPermissionFlagsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetTssAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPermissionFlagsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetTssAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -8840,7 +7957,7 @@ func (m *QueryGetPermissionFlagsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPermissionFlagsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetTssAddressResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8863,17 +7980,17 @@ func (m *QueryGetPermissionFlagsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPermissionFlagsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetTssAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPermissionFlagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetTssAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PermissionFlags", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Eth", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8883,160 +8000,27 @@ func (m *QueryGetPermissionFlagsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PermissionFlags.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Eth = 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 (m *QueryGetTssAddressRequest) 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: QueryGetTssAddressRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetTssAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - 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 *QueryGetTssAddressResponse) 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: QueryGetTssAddressResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetTssAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Eth", 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.Eth = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Btc", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Btc", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9087,142 +8071,6 @@ func (m *QueryGetTssAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetKeygenRequest) 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: QueryGetKeygenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetKeygenRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - 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 *QueryGetKeygenResponse) 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: QueryGetKeygenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetKeygenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keygen", 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 m.Keygen == nil { - m.Keygen = &Keygen{} - } - if err := m.Keygen.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 *QueryGetTSSRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -11214,380 +10062,6 @@ func (m *QueryAllCctxPendingResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetNodeAccountRequest) 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: QueryGetNodeAccountRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetNodeAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", 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.Index = 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 (m *QueryGetNodeAccountResponse) 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: QueryGetNodeAccountResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetNodeAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAccount", 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 m.NodeAccount == nil { - m.NodeAccount = &NodeAccount{} - } - if err := m.NodeAccount.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 *QueryAllNodeAccountRequest) 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: QueryAllNodeAccountRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllNodeAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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 m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.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 *QueryAllNodeAccountResponse) 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: QueryAllNodeAccountResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllNodeAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAccount", 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 - } - m.NodeAccount = append(m.NodeAccount, &NodeAccount{}) - if err := m.NodeAccount[len(m.NodeAccount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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 m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.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 *QueryLastZetaHeightRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/crosschain/types/query.pb.gw.go b/x/crosschain/types/query.pb.gw.go index 9ff6a69bf9..d4ab685516 100644 --- a/x/crosschain/types/query.pb.gw.go +++ b/x/crosschain/types/query.pb.gw.go @@ -289,24 +289,6 @@ func local_request_Query_InTxHashToCctxAll_0(ctx context.Context, marshaler runt } -func request_Query_PermissionFlags_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPermissionFlagsRequest - var metadata runtime.ServerMetadata - - msg, err := client.PermissionFlags(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_PermissionFlags_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPermissionFlagsRequest - var metadata runtime.ServerMetadata - - msg, err := server.PermissionFlags(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_GetTssAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetTssAddressRequest var metadata runtime.ServerMetadata @@ -325,24 +307,6 @@ func local_request_Query_GetTssAddress_0(ctx context.Context, marshaler runtime. } -func request_Query_Keygen_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetKeygenRequest - var metadata runtime.ServerMetadata - - msg, err := client.Keygen(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Keygen_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetKeygenRequest - var metadata runtime.ServerMetadata - - msg, err := server.Keygen(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_TSS_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetTSSRequest var metadata runtime.ServerMetadata @@ -829,96 +793,6 @@ func local_request_Query_CctxAllPending_0(ctx context.Context, marshaler runtime } -func request_Query_NodeAccount_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetNodeAccountRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["index"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "index") - } - - protoReq.Index, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "index", err) - } - - msg, err := client.NodeAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_NodeAccount_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetNodeAccountRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["index"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "index") - } - - protoReq.Index, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "index", err) - } - - msg, err := server.NodeAccount(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_NodeAccountAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_NodeAccountAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllNodeAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_NodeAccountAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.NodeAccountAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_NodeAccountAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllNodeAccountRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_NodeAccountAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.NodeAccountAll(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_LastZetaHeight_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryLastZetaHeightRequest var metadata runtime.ServerMetadata @@ -1081,29 +955,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_PermissionFlags_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_PermissionFlags_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PermissionFlags_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetTssAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1127,29 +978,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Keygen_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Keygen_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Keygen_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_TSS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1449,52 +1277,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_NodeAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_NodeAccount_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_NodeAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_NodeAccountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_NodeAccountAll_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_NodeAccountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_LastZetaHeight_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1679,26 +1461,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_PermissionFlags_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_PermissionFlags_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_PermissionFlags_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetTssAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1719,26 +1481,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Keygen_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Keygen_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Keygen_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_TSS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1999,46 +1741,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_NodeAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_NodeAccount_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_NodeAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_NodeAccountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_NodeAccountAll_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_NodeAccountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_LastZetaHeight_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2075,11 +1777,7 @@ var ( pattern_Query_InTxHashToCctxAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "inTxHashToCctx"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PermissionFlags_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"zeta-chain", "zetacore", "crosschain", "permission_flags"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetTssAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"zeta-chain", "zetacore", "crosschain", "get_tss_address"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_Keygen_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "keygen"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTssAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "get_tss_address"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_TSS_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "TSS"}, "", runtime.AssumeColonVerbOpt(false))) @@ -2107,10 +1805,6 @@ var ( pattern_Query_CctxAllPending_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "cctxPending"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_NodeAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "crosschain", "nodeAccount", "index"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_NodeAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "nodeAccount"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LastZetaHeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "crosschain", "lastZetaHeight"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -2127,12 +1821,8 @@ var ( forward_Query_InTxHashToCctxAll_0 = runtime.ForwardResponseMessage - forward_Query_PermissionFlags_0 = runtime.ForwardResponseMessage - forward_Query_GetTssAddress_0 = runtime.ForwardResponseMessage - forward_Query_Keygen_0 = runtime.ForwardResponseMessage - forward_Query_TSS_0 = runtime.ForwardResponseMessage forward_Query_GasPrice_0 = runtime.ForwardResponseMessage @@ -2159,9 +1849,5 @@ var ( forward_Query_CctxAllPending_0 = runtime.ForwardResponseMessage - forward_Query_NodeAccount_0 = runtime.ForwardResponseMessage - - forward_Query_NodeAccountAll_0 = runtime.ForwardResponseMessage - forward_Query_LastZetaHeight_0 = runtime.ForwardResponseMessage ) diff --git a/x/crosschain/types/tss_voter.pb.go b/x/crosschain/types/tss_voter.pb.go deleted file mode 100644 index 79c2be6898..0000000000 --- a/x/crosschain/types/tss_voter.pb.go +++ /dev/null @@ -1,508 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: crosschain/tss_voter.proto - -package types - -import ( - fmt "fmt" - 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 - -type TSSVoter struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` - TssAddress string `protobuf:"bytes,3,opt,name=tss_address,json=tssAddress,proto3" json:"tss_address,omitempty"` - TssPubkey string `protobuf:"bytes,4,opt,name=tss_pubkey,json=tssPubkey,proto3" json:"tss_pubkey,omitempty"` - KeyGenZetaHeight uint64 `protobuf:"varint,5,opt,name=keyGenZetaHeight,proto3" json:"keyGenZetaHeight,omitempty"` -} - -func (m *TSSVoter) Reset() { *m = TSSVoter{} } -func (m *TSSVoter) String() string { return proto.CompactTextString(m) } -func (*TSSVoter) ProtoMessage() {} -func (*TSSVoter) Descriptor() ([]byte, []int) { - return fileDescriptor_e78ab18fa9692f61, []int{0} -} -func (m *TSSVoter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TSSVoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TSSVoter.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 *TSSVoter) XXX_Merge(src proto.Message) { - xxx_messageInfo_TSSVoter.Merge(m, src) -} -func (m *TSSVoter) XXX_Size() int { - return m.Size() -} -func (m *TSSVoter) XXX_DiscardUnknown() { - xxx_messageInfo_TSSVoter.DiscardUnknown(m) -} - -var xxx_messageInfo_TSSVoter proto.InternalMessageInfo - -func (m *TSSVoter) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *TSSVoter) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *TSSVoter) GetTssAddress() string { - if m != nil { - return m.TssAddress - } - return "" -} - -func (m *TSSVoter) GetTssPubkey() string { - if m != nil { - return m.TssPubkey - } - return "" -} - -func (m *TSSVoter) GetKeyGenZetaHeight() uint64 { - if m != nil { - return m.KeyGenZetaHeight - } - return 0 -} - -func init() { - proto.RegisterType((*TSSVoter)(nil), "zetachain.zetacore.crosschain.TSSVoter") -} - -func init() { proto.RegisterFile("crosschain/tss_voter.proto", fileDescriptor_e78ab18fa9692f61) } - -var fileDescriptor_e78ab18fa9692f61 = []byte{ - // 250 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0x2e, 0xca, 0x2f, - 0x2e, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x29, 0x2e, 0x8e, 0x2f, 0xcb, 0x2f, 0x49, 0x2d, - 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xad, 0x4a, 0x2d, 0x49, 0x04, 0x4b, 0xe9, 0x81, - 0x59, 0xf9, 0x45, 0xa9, 0x7a, 0x08, 0xe5, 0x4a, 0xcb, 0x18, 0xb9, 0x38, 0x42, 0x82, 0x83, 0xc3, - 0x40, 0x3a, 0x84, 0x24, 0xb8, 0xd8, 0x93, 0x8b, 0x52, 0x13, 0x4b, 0xf2, 0x8b, 0x24, 0x18, 0x15, - 0x18, 0x35, 0x38, 0x83, 0x60, 0x5c, 0x21, 0x11, 0x2e, 0x56, 0xb0, 0x7a, 0x09, 0x26, 0xb0, 0x38, - 0x84, 0x23, 0x24, 0xcf, 0xc5, 0x0d, 0xb2, 0x2e, 0x31, 0x25, 0xa5, 0x28, 0xb5, 0xb8, 0x58, 0x82, - 0x19, 0x2c, 0xc7, 0x55, 0x52, 0x5c, 0xec, 0x08, 0x11, 0x11, 0x92, 0xe5, 0x02, 0xf1, 0xe2, 0x0b, - 0x4a, 0x93, 0xb2, 0x53, 0x2b, 0x25, 0x58, 0xc0, 0xf2, 0x9c, 0x25, 0xc5, 0xc5, 0x01, 0x60, 0x01, - 0x21, 0x2d, 0x2e, 0x81, 0xec, 0xd4, 0x4a, 0xf7, 0xd4, 0xbc, 0xa8, 0xd4, 0x92, 0x44, 0x8f, 0xd4, - 0xcc, 0xf4, 0x8c, 0x12, 0x09, 0x56, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x0c, 0x71, 0x27, 0xef, 0x13, - 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, - 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x4c, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, - 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0x79, 0x51, 0x17, 0x12, 0x10, 0x30, 0xdf, 0xea, 0x57, 0xe8, - 0x23, 0x07, 0x4f, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x6c, 0x8c, 0x01, 0x01, 0x00, 0x00, - 0xff, 0xff, 0xef, 0xa0, 0x99, 0xd7, 0x39, 0x01, 0x00, 0x00, -} - -func (m *TSSVoter) 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 *TSSVoter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TSSVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.KeyGenZetaHeight != 0 { - i = encodeVarintTssVoter(dAtA, i, uint64(m.KeyGenZetaHeight)) - i-- - dAtA[i] = 0x28 - } - if len(m.TssPubkey) > 0 { - i -= len(m.TssPubkey) - copy(dAtA[i:], m.TssPubkey) - i = encodeVarintTssVoter(dAtA, i, uint64(len(m.TssPubkey))) - i-- - dAtA[i] = 0x22 - } - if len(m.TssAddress) > 0 { - i -= len(m.TssAddress) - copy(dAtA[i:], m.TssAddress) - i = encodeVarintTssVoter(dAtA, i, uint64(len(m.TssAddress))) - i-- - dAtA[i] = 0x1a - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintTssVoter(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTssVoter(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintTssVoter(dAtA []byte, offset int, v uint64) int { - offset -= sovTssVoter(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *TSSVoter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTssVoter(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovTssVoter(uint64(l)) - } - l = len(m.TssAddress) - if l > 0 { - n += 1 + l + sovTssVoter(uint64(l)) - } - l = len(m.TssPubkey) - if l > 0 { - n += 1 + l + sovTssVoter(uint64(l)) - } - if m.KeyGenZetaHeight != 0 { - n += 1 + sovTssVoter(uint64(m.KeyGenZetaHeight)) - } - return n -} - -func sovTssVoter(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTssVoter(x uint64) (n int) { - return sovTssVoter(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *TSSVoter) 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 ErrIntOverflowTssVoter - } - 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: TSSVoter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TSSVoter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTssVoter - } - 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 ErrInvalidLengthTssVoter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTssVoter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTssVoter - } - 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 ErrInvalidLengthTssVoter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTssVoter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TssAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTssVoter - } - 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 ErrInvalidLengthTssVoter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTssVoter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TssAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TssPubkey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTssVoter - } - 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 ErrInvalidLengthTssVoter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTssVoter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TssPubkey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyGenZetaHeight", wireType) - } - m.KeyGenZetaHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTssVoter - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KeyGenZetaHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTssVoter(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTssVoter - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTssVoter(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, ErrIntOverflowTssVoter - } - 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, ErrIntOverflowTssVoter - } - 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, ErrIntOverflowTssVoter - } - 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, ErrInvalidLengthTssVoter - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTssVoter - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTssVoter - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTssVoter = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTssVoter = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTssVoter = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/crosschain/types/tx.pb.go b/x/crosschain/types/tx.pb.go index 3bd3cdbfd7..6e6c8d7a55 100644 --- a/x/crosschain/types/tx.pb.go +++ b/x/crosschain/types/tx.pb.go @@ -230,182 +230,6 @@ func (m *MsgRemoveFromOutTxTrackerResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveFromOutTxTrackerResponse proto.InternalMessageInfo -type MsgUpdatePermissionFlags struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - IsInboundEnabled bool `protobuf:"varint,3,opt,name=isInboundEnabled,proto3" json:"isInboundEnabled,omitempty"` -} - -func (m *MsgUpdatePermissionFlags) Reset() { *m = MsgUpdatePermissionFlags{} } -func (m *MsgUpdatePermissionFlags) String() string { return proto.CompactTextString(m) } -func (*MsgUpdatePermissionFlags) ProtoMessage() {} -func (*MsgUpdatePermissionFlags) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{4} -} -func (m *MsgUpdatePermissionFlags) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdatePermissionFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdatePermissionFlags.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 *MsgUpdatePermissionFlags) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdatePermissionFlags.Merge(m, src) -} -func (m *MsgUpdatePermissionFlags) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdatePermissionFlags) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdatePermissionFlags.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdatePermissionFlags proto.InternalMessageInfo - -func (m *MsgUpdatePermissionFlags) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgUpdatePermissionFlags) GetIsInboundEnabled() bool { - if m != nil { - return m.IsInboundEnabled - } - return false -} - -type MsgUpdatePermissionFlagsResponse struct { -} - -func (m *MsgUpdatePermissionFlagsResponse) Reset() { *m = MsgUpdatePermissionFlagsResponse{} } -func (m *MsgUpdatePermissionFlagsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdatePermissionFlagsResponse) ProtoMessage() {} -func (*MsgUpdatePermissionFlagsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{5} -} -func (m *MsgUpdatePermissionFlagsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdatePermissionFlagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdatePermissionFlagsResponse.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 *MsgUpdatePermissionFlagsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdatePermissionFlagsResponse.Merge(m, src) -} -func (m *MsgUpdatePermissionFlagsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdatePermissionFlagsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdatePermissionFlagsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdatePermissionFlagsResponse proto.InternalMessageInfo - -type MsgUpdateKeygen struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Block int64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *MsgUpdateKeygen) Reset() { *m = MsgUpdateKeygen{} } -func (m *MsgUpdateKeygen) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateKeygen) ProtoMessage() {} -func (*MsgUpdateKeygen) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{6} -} -func (m *MsgUpdateKeygen) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateKeygen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateKeygen.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 *MsgUpdateKeygen) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateKeygen.Merge(m, src) -} -func (m *MsgUpdateKeygen) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateKeygen) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateKeygen.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateKeygen proto.InternalMessageInfo - -func (m *MsgUpdateKeygen) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgUpdateKeygen) GetBlock() int64 { - if m != nil { - return m.Block - } - return 0 -} - -type MsgUpdateKeygenResponse struct { -} - -func (m *MsgUpdateKeygenResponse) Reset() { *m = MsgUpdateKeygenResponse{} } -func (m *MsgUpdateKeygenResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateKeygenResponse) ProtoMessage() {} -func (*MsgUpdateKeygenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{7} -} -func (m *MsgUpdateKeygenResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateKeygenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateKeygenResponse.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 *MsgUpdateKeygenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateKeygenResponse.Merge(m, src) -} -func (m *MsgUpdateKeygenResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateKeygenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateKeygenResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateKeygenResponse proto.InternalMessageInfo - // this line is used by starport scaffolding # proto/tx/message type MsgCreateTSSVoter struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` @@ -418,7 +242,7 @@ func (m *MsgCreateTSSVoter) Reset() { *m = MsgCreateTSSVoter{} } func (m *MsgCreateTSSVoter) String() string { return proto.CompactTextString(m) } func (*MsgCreateTSSVoter) ProtoMessage() {} func (*MsgCreateTSSVoter) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{8} + return fileDescriptor_81d6d611190b7635, []int{4} } func (m *MsgCreateTSSVoter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -482,7 +306,7 @@ func (m *MsgCreateTSSVoterResponse) Reset() { *m = MsgCreateTSSVoterResp func (m *MsgCreateTSSVoterResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateTSSVoterResponse) ProtoMessage() {} func (*MsgCreateTSSVoterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{9} + return fileDescriptor_81d6d611190b7635, []int{5} } func (m *MsgCreateTSSVoterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -523,7 +347,7 @@ func (m *MsgGasPriceVoter) Reset() { *m = MsgGasPriceVoter{} } func (m *MsgGasPriceVoter) String() string { return proto.CompactTextString(m) } func (*MsgGasPriceVoter) ProtoMessage() {} func (*MsgGasPriceVoter) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{10} + return fileDescriptor_81d6d611190b7635, []int{6} } func (m *MsgGasPriceVoter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -594,7 +418,7 @@ func (m *MsgGasPriceVoterResponse) Reset() { *m = MsgGasPriceVoterRespon func (m *MsgGasPriceVoterResponse) String() string { return proto.CompactTextString(m) } func (*MsgGasPriceVoterResponse) ProtoMessage() {} func (*MsgGasPriceVoterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{11} + return fileDescriptor_81d6d611190b7635, []int{7} } func (m *MsgGasPriceVoterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -633,7 +457,7 @@ func (m *MsgNonceVoter) Reset() { *m = MsgNonceVoter{} } func (m *MsgNonceVoter) String() string { return proto.CompactTextString(m) } func (*MsgNonceVoter) ProtoMessage() {} func (*MsgNonceVoter) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{12} + return fileDescriptor_81d6d611190b7635, []int{8} } func (m *MsgNonceVoter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -690,7 +514,7 @@ func (m *MsgNonceVoterResponse) Reset() { *m = MsgNonceVoterResponse{} } func (m *MsgNonceVoterResponse) String() string { return proto.CompactTextString(m) } func (*MsgNonceVoterResponse) ProtoMessage() {} func (*MsgNonceVoterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{13} + return fileDescriptor_81d6d611190b7635, []int{9} } func (m *MsgNonceVoterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -735,7 +559,7 @@ func (m *MsgVoteOnObservedOutboundTx) Reset() { *m = MsgVoteOnObservedOu func (m *MsgVoteOnObservedOutboundTx) String() string { return proto.CompactTextString(m) } func (*MsgVoteOnObservedOutboundTx) ProtoMessage() {} func (*MsgVoteOnObservedOutboundTx) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{14} + return fileDescriptor_81d6d611190b7635, []int{10} } func (m *MsgVoteOnObservedOutboundTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -827,7 +651,7 @@ func (m *MsgVoteOnObservedOutboundTxResponse) Reset() { *m = MsgVoteOnOb func (m *MsgVoteOnObservedOutboundTxResponse) String() string { return proto.CompactTextString(m) } func (*MsgVoteOnObservedOutboundTxResponse) ProtoMessage() {} func (*MsgVoteOnObservedOutboundTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{15} + return fileDescriptor_81d6d611190b7635, []int{11} } func (m *MsgVoteOnObservedOutboundTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -878,7 +702,7 @@ func (m *MsgVoteOnObservedInboundTx) Reset() { *m = MsgVoteOnObservedInb func (m *MsgVoteOnObservedInboundTx) String() string { return proto.CompactTextString(m) } func (*MsgVoteOnObservedInboundTx) ProtoMessage() {} func (*MsgVoteOnObservedInboundTx) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{16} + return fileDescriptor_81d6d611190b7635, []int{12} } func (m *MsgVoteOnObservedInboundTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -998,7 +822,7 @@ func (m *MsgVoteOnObservedInboundTxResponse) Reset() { *m = MsgVoteOnObs func (m *MsgVoteOnObservedInboundTxResponse) String() string { return proto.CompactTextString(m) } func (*MsgVoteOnObservedInboundTxResponse) ProtoMessage() {} func (*MsgVoteOnObservedInboundTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{17} + return fileDescriptor_81d6d611190b7635, []int{13} } func (m *MsgVoteOnObservedInboundTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1037,7 +861,7 @@ func (m *MsgSetNodeKeys) Reset() { *m = MsgSetNodeKeys{} } func (m *MsgSetNodeKeys) String() string { return proto.CompactTextString(m) } func (*MsgSetNodeKeys) ProtoMessage() {} func (*MsgSetNodeKeys) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{18} + return fileDescriptor_81d6d611190b7635, []int{14} } func (m *MsgSetNodeKeys) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1094,7 +918,7 @@ func (m *MsgSetNodeKeysResponse) Reset() { *m = MsgSetNodeKeysResponse{} func (m *MsgSetNodeKeysResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetNodeKeysResponse) ProtoMessage() {} func (*MsgSetNodeKeysResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_81d6d611190b7635, []int{19} + return fileDescriptor_81d6d611190b7635, []int{15} } func (m *MsgSetNodeKeysResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1128,10 +952,6 @@ func init() { proto.RegisterType((*MsgAddToOutTxTrackerResponse)(nil), "zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse") proto.RegisterType((*MsgRemoveFromOutTxTracker)(nil), "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker") proto.RegisterType((*MsgRemoveFromOutTxTrackerResponse)(nil), "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse") - proto.RegisterType((*MsgUpdatePermissionFlags)(nil), "zetachain.zetacore.crosschain.MsgUpdatePermissionFlags") - proto.RegisterType((*MsgUpdatePermissionFlagsResponse)(nil), "zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse") - proto.RegisterType((*MsgUpdateKeygen)(nil), "zetachain.zetacore.crosschain.MsgUpdateKeygen") - proto.RegisterType((*MsgUpdateKeygenResponse)(nil), "zetachain.zetacore.crosschain.MsgUpdateKeygenResponse") proto.RegisterType((*MsgCreateTSSVoter)(nil), "zetachain.zetacore.crosschain.MsgCreateTSSVoter") proto.RegisterType((*MsgCreateTSSVoterResponse)(nil), "zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse") proto.RegisterType((*MsgGasPriceVoter)(nil), "zetachain.zetacore.crosschain.MsgGasPriceVoter") @@ -1149,85 +969,76 @@ func init() { func init() { proto.RegisterFile("crosschain/tx.proto", fileDescriptor_81d6d611190b7635) } var fileDescriptor_81d6d611190b7635 = []byte{ - // 1243 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xce, 0xe2, 0xc6, 0xb1, 0x8f, 0x9b, 0x34, 0xd9, 0xa6, 0xcd, 0x76, 0xd3, 0x3a, 0xe9, 0x96, - 0x96, 0x08, 0x35, 0x36, 0xa4, 0xfc, 0x94, 0x82, 0x04, 0x49, 0xd4, 0xa6, 0x55, 0x70, 0x12, 0xad, - 0x5d, 0x2e, 0x72, 0xb3, 0xac, 0x77, 0x27, 0xeb, 0x95, 0xbd, 0x33, 0xd6, 0xce, 0x38, 0xb2, 0x2b, - 0x6e, 0xb9, 0xe0, 0x0e, 0x24, 0x24, 0x10, 0x2f, 0xc0, 0xa3, 0xd0, 0xcb, 0x72, 0x87, 0xb8, 0x88, - 0x20, 0x79, 0x03, 0x9e, 0x00, 0xcd, 0xcc, 0xee, 0xc6, 0x4e, 0xfc, 0x13, 0x07, 0x71, 0xb5, 0x73, - 0xce, 0x9c, 0x9f, 0x6f, 0xce, 0xf9, 0xe6, 0x67, 0xe1, 0xba, 0x13, 0x12, 0x4a, 0x9d, 0x9a, 0xed, - 0xe3, 0x22, 0x6b, 0x17, 0x9a, 0x21, 0x61, 0x44, 0xbd, 0xf3, 0x0a, 0x31, 0x5b, 0xe8, 0x0a, 0x62, - 0x44, 0x42, 0x54, 0x38, 0xb5, 0xd3, 0xef, 0x76, 0xf9, 0x34, 0x51, 0x18, 0xf8, 0x94, 0xfa, 0x04, - 0x5b, 0x07, 0x0d, 0xdb, 0xa3, 0x32, 0x82, 0xbe, 0xd0, 0x65, 0x52, 0x47, 0x1d, 0x0f, 0xe1, 0x68, - 0xe2, 0xba, 0x43, 0x82, 0x80, 0xe0, 0xa2, 0xfc, 0x44, 0xca, 0x79, 0x8f, 0x78, 0x44, 0x0c, 0x8b, - 0x7c, 0x24, 0xb5, 0xc6, 0x2b, 0x98, 0x2f, 0x51, 0x6f, 0xdd, 0x75, 0x2b, 0x64, 0xb7, 0xc5, 0x2a, - 0xed, 0x4a, 0x68, 0x3b, 0x75, 0x14, 0xaa, 0x1a, 0x4c, 0x39, 0x21, 0xb2, 0x19, 0x09, 0x35, 0x65, - 0x59, 0x59, 0xc9, 0x9a, 0xb1, 0xa8, 0xde,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59, 0xb2, - 0x66, 0x96, 0x51, 0xba, 0x27, 0x14, 0x7c, 0xf1, 0x75, 0xd4, 0xd9, 0x42, 0x78, 0x1f, 0x31, 0xfb, - 0x39, 0xf2, 0xbd, 0x1a, 0x13, 0x8b, 0x4f, 0x99, 0xe7, 0xf4, 0xea, 0x2a, 0xa4, 0x29, 0xb3, 0x59, - 0x8b, 0x0a, 0x8e, 0xcc, 0xac, 0xdd, 0x28, 0x44, 0xe4, 0x35, 0x91, 0x83, 0xfc, 0x43, 0x54, 0x16, - 0x93, 0x66, 0x64, 0x64, 0x2c, 0x0a, 0x6a, 0xf4, 0x02, 0x4d, 0x96, 0xf1, 0xb3, 0x02, 0xb3, 0x25, - 0xea, 0x6d, 0xd9, 0x74, 0x2f, 0xf4, 0x1d, 0x34, 0x6a, 0x15, 0xc3, 0xf9, 0xd2, 0xe4, 0x21, 0x62, - 0xbe, 0x08, 0x41, 0xbd, 0x0b, 0x57, 0x45, 0x29, 0x2d, 0xdc, 0x0a, 0xaa, 0x28, 0x14, 0x88, 0xaf, - 0x98, 0x39, 0xa1, 0xdb, 0x11, 0x2a, 0xf5, 0x26, 0xa4, 0x69, 0xab, 0xd9, 0x6c, 0x74, 0xb4, 0x49, - 0x49, 0x79, 0x29, 0x19, 0xba, 0x60, 0x51, 0x0f, 0xb2, 0x04, 0xf6, 0x3e, 0x4c, 0x97, 0xa8, 0xb7, - 0xc3, 0x29, 0xf9, 0xdf, 0x20, 0xf7, 0xa1, 0xf8, 0x02, 0xdc, 0xe8, 0x89, 0x9d, 0x24, 0xfd, 0x3d, - 0x05, 0x8b, 0x25, 0xea, 0x71, 0xe5, 0x2e, 0xde, 0xad, 0x52, 0x14, 0x1e, 0x22, 0x77, 0xb7, 0xc5, - 0x04, 0x33, 0x2b, 0xed, 0x21, 0x18, 0x16, 0x21, 0xeb, 0x38, 0xf1, 0xc6, 0x96, 0xbd, 0xcf, 0x70, - 0x05, 0xdf, 0xda, 0x6a, 0x01, 0xae, 0x93,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, 0x1d, 0x1d, 0xb1, 0xcb, - 0x5c, 0xff, 0x70, 0x2c, 0xf3, 0x24, 0xe9, 0x0f, 0x0a, 0xdc, 0xe8, 0xff, 0x7a, 0xbf, 0x00, 0xe1, - 0xfa, 0x3a, 0xea, 0x9f, 0x5f, 0xd2, 0x31, 0xc1, 0x74, 0x08, 0x57, 0x7b, 0x9e, 0xf2, 0x85, 0x8b, - 0x06, 0x94, 0xf6, 0xfa, 0x47, 0xe3, 0xd9, 0xc7, 0x79, 0x37, 0xb6, 0x5f, 0x1f, 0xe7, 0x95, 0x37, - 0xc7, 0x79, 0xe5, 0xaf, 0xe3, 0xbc, 0xf2, 0xfd, 0x49, 0x7e, 0xe2, 0xcd, 0x49, 0x7e, 0xe2, 0x8f, - 0x93, 0xfc, 0xc4, 0xfe, 0xfb, 0x5d, 0xf7, 0x27, 0x8f, 0xb8, 0x2a, 0xff, 0x2e, 0xe3, 0xe0, 0xc5, - 0x76, 0xb1, 0xfb, 0x57, 0x96, 0x5f, 0xa7, 0xd5, 0xb4, 0xf8, 0x91, 0x7c, 0xf4, 0x6f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x96, 0xc4, 0x00, 0xf2, 0xe5, 0x0e, 0x00, 0x00, + // 1096 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x4f, 0x1b, 0xc7, + 0x1b, 0x66, 0x7f, 0x06, 0xe3, 0x7d, 0x09, 0x04, 0x06, 0x02, 0x9b, 0x25, 0x31, 0x64, 0xf3, 0x4b, + 0x8a, 0xaa, 0x60, 0xb7, 0xa4, 0x52, 0xd3, 0xb4, 0x87, 0x02, 0x6a, 0x49, 0x44, 0x0d, 0x68, 0xed, + 0xf6, 0xc0, 0x65, 0xb5, 0xde, 0x9d, 0xac, 0x57, 0xb0, 0x33, 0xd6, 0xce, 0x18, 0xd9, 0x51, 0xaf, + 0x3d, 0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x21, 0x6b, 0xdd, 0x04, 0xe8, 0x7a, 0x3c, 0x9f, 0x0c, 0x2f, 0x73, 0x11, 0x6d, 0x7e, 0x30, 0x4a, + 0x74, 0xd6, 0xf1, 0x27, 0x0d, 0x8c, 0xbe, 0x2f, 0xe7, 0xf3, 0xe1, 0x25, 0xfb, 0xe5, 0x9a, 0x5b, + 0x37, 0xcf, 0xcd, 0xc0, 0xfd, 0xa0, 0xc1, 0x52, 0xbf, 0xbb, 0xfd, 0xa3, 0x51, 0xeb, 0x67, 0xa9, + 0xe6, 0xe6, 0x8d, 0x53, 0x53, 0x64, 0x5b, 0xbb, 0x6f, 0xce, 0x8a, 0xda, 0xdb, 0xb3, 0xa2, 0xf6, + 0xc7, 0x59, 0x51, 0xfb, 0xee, 0xbc, 0x38, 0xf6, 0xf6, 0xbc, 0x38, 0xf6, 0xdb, 0x79, 0x71, 0xec, + 0xf0, 0xfd, 0xae, 0xeb, 0x5b, 0x14, 0x5f, 0x57, 0xff, 0x09, 0xd2, 0x3e, 0xe5, 0x76, 0xb9, 0xfb, + 0x9f, 0x82, 0xb8, 0xcd, 0xeb, 0x79, 0xf9, 0x1b, 0xff, 0xe9, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x2e, 0x83, 0x40, 0x11, 0x44, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1249,9 +1060,6 @@ type MsgClient interface { NonceVoter(ctx context.Context, in *MsgNonceVoter, opts ...grpc.CallOption) (*MsgNonceVoterResponse, error) VoteOnObservedOutboundTx(ctx context.Context, in *MsgVoteOnObservedOutboundTx, opts ...grpc.CallOption) (*MsgVoteOnObservedOutboundTxResponse, error) VoteOnObservedInboundTx(ctx context.Context, in *MsgVoteOnObservedInboundTx, opts ...grpc.CallOption) (*MsgVoteOnObservedInboundTxResponse, error) - SetNodeKeys(ctx context.Context, in *MsgSetNodeKeys, opts ...grpc.CallOption) (*MsgSetNodeKeysResponse, error) - UpdatePermissionFlags(ctx context.Context, in *MsgUpdatePermissionFlags, opts ...grpc.CallOption) (*MsgUpdatePermissionFlagsResponse, error) - UpdateKeygen(ctx context.Context, in *MsgUpdateKeygen, opts ...grpc.CallOption) (*MsgUpdateKeygenResponse, error) } type msgClient struct { @@ -1325,33 +1133,6 @@ func (c *msgClient) VoteOnObservedInboundTx(ctx context.Context, in *MsgVoteOnOb return out, nil } -func (c *msgClient) SetNodeKeys(ctx context.Context, in *MsgSetNodeKeys, opts ...grpc.CallOption) (*MsgSetNodeKeysResponse, error) { - out := new(MsgSetNodeKeysResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Msg/SetNodeKeys", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdatePermissionFlags(ctx context.Context, in *MsgUpdatePermissionFlags, opts ...grpc.CallOption) (*MsgUpdatePermissionFlagsResponse, error) { - out := new(MsgUpdatePermissionFlagsResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Msg/UpdatePermissionFlags", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateKeygen(ctx context.Context, in *MsgUpdateKeygen, opts ...grpc.CallOption) (*MsgUpdateKeygenResponse, error) { - out := new(MsgUpdateKeygenResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.crosschain.Msg/UpdateKeygen", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // MsgServer is the server API for Msg service. type MsgServer interface { AddToOutTxTracker(context.Context, *MsgAddToOutTxTracker) (*MsgAddToOutTxTrackerResponse, error) @@ -1361,9 +1142,6 @@ type MsgServer interface { NonceVoter(context.Context, *MsgNonceVoter) (*MsgNonceVoterResponse, error) VoteOnObservedOutboundTx(context.Context, *MsgVoteOnObservedOutboundTx) (*MsgVoteOnObservedOutboundTxResponse, error) VoteOnObservedInboundTx(context.Context, *MsgVoteOnObservedInboundTx) (*MsgVoteOnObservedInboundTxResponse, error) - SetNodeKeys(context.Context, *MsgSetNodeKeys) (*MsgSetNodeKeysResponse, error) - UpdatePermissionFlags(context.Context, *MsgUpdatePermissionFlags) (*MsgUpdatePermissionFlagsResponse, error) - UpdateKeygen(context.Context, *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1391,15 +1169,6 @@ func (*UnimplementedMsgServer) VoteOnObservedOutboundTx(ctx context.Context, req func (*UnimplementedMsgServer) VoteOnObservedInboundTx(ctx context.Context, req *MsgVoteOnObservedInboundTx) (*MsgVoteOnObservedInboundTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VoteOnObservedInboundTx not implemented") } -func (*UnimplementedMsgServer) SetNodeKeys(ctx context.Context, req *MsgSetNodeKeys) (*MsgSetNodeKeysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetNodeKeys not implemented") -} -func (*UnimplementedMsgServer) UpdatePermissionFlags(ctx context.Context, req *MsgUpdatePermissionFlags) (*MsgUpdatePermissionFlagsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePermissionFlags not implemented") -} -func (*UnimplementedMsgServer) UpdateKeygen(ctx context.Context, req *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateKeygen not implemented") -} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1531,60 +1300,6 @@ func _Msg_VoteOnObservedInboundTx_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_SetNodeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetNodeKeys) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetNodeKeys(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Msg/SetNodeKeys", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetNodeKeys(ctx, req.(*MsgSetNodeKeys)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdatePermissionFlags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdatePermissionFlags) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdatePermissionFlags(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Msg/UpdatePermissionFlags", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdatePermissionFlags(ctx, req.(*MsgUpdatePermissionFlags)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateKeygen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateKeygen) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateKeygen(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.crosschain.Msg/UpdateKeygen", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateKeygen(ctx, req.(*MsgUpdateKeygen)) - } - return interceptor(ctx, in, info, handler) -} - var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "zetachain.zetacore.crosschain.Msg", HandlerType: (*MsgServer)(nil), @@ -1617,18 +1332,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "VoteOnObservedInboundTx", Handler: _Msg_VoteOnObservedInboundTx_Handler, }, - { - MethodName: "SetNodeKeys", - Handler: _Msg_SetNodeKeys_Handler, - }, - { - MethodName: "UpdatePermissionFlags", - Handler: _Msg_UpdatePermissionFlags_Handler, - }, - { - MethodName: "UpdateKeygen", - Handler: _Msg_UpdateKeygen_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "crosschain/tx.proto", @@ -1767,7 +1470,7 @@ func (m *MsgRemoveFromOutTxTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *MsgUpdatePermissionFlags) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateTSSVoter) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1777,26 +1480,33 @@ func (m *MsgUpdatePermissionFlags) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdatePermissionFlags) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateTSSVoter) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdatePermissionFlags) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateTSSVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.IsInboundEnabled { + if m.Status != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Status)) i-- - if m.IsInboundEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + dAtA[i] = 0x20 + } + if m.KeyGenZetaHeight != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.KeyGenZetaHeight)) i-- dAtA[i] = 0x18 } + if len(m.TssPubkey) > 0 { + i -= len(m.TssPubkey) + copy(dAtA[i:], m.TssPubkey) + i = encodeVarintTx(dAtA, i, uint64(len(m.TssPubkey))) + i-- + dAtA[i] = 0x12 + } if len(m.Creator) > 0 { i -= len(m.Creator) copy(dAtA[i:], m.Creator) @@ -1807,7 +1517,7 @@ func (m *MsgUpdatePermissionFlags) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *MsgUpdatePermissionFlagsResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateTSSVoterResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1817,12 +1527,12 @@ func (m *MsgUpdatePermissionFlagsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdatePermissionFlagsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateTSSVoterResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdatePermissionFlagsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateTSSVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1830,7 +1540,7 @@ func (m *MsgUpdatePermissionFlagsResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *MsgUpdateKeygen) Marshal() (dAtA []byte, err error) { +func (m *MsgGasPriceVoter) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1840,18 +1550,35 @@ func (m *MsgUpdateKeygen) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateKeygen) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgGasPriceVoter) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateKeygen) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgGasPriceVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Block != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Block)) + if len(m.Supply) > 0 { + i -= len(m.Supply) + copy(dAtA[i:], m.Supply) + i = encodeVarintTx(dAtA, i, uint64(len(m.Supply))) + i-- + dAtA[i] = 0x2a + } + if m.BlockNumber != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.BlockNumber)) + i-- + dAtA[i] = 0x20 + } + if m.Price != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Price)) + i-- + dAtA[i] = 0x18 + } + if m.ChainId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ChainId)) i-- dAtA[i] = 0x10 } @@ -1865,7 +1592,7 @@ func (m *MsgUpdateKeygen) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgUpdateKeygenResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgGasPriceVoterResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1875,12 +1602,12 @@ func (m *MsgUpdateKeygenResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateKeygenResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgGasPriceVoterResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateKeygenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgGasPriceVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1888,7 +1615,7 @@ func (m *MsgUpdateKeygenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgCreateTSSVoter) Marshal() (dAtA []byte, err error) { +func (m *MsgNonceVoter) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1898,163 +1625,18 @@ func (m *MsgCreateTSSVoter) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateTSSVoter) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgNonceVoter) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateTSSVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgNonceVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Status != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x20 - } - if m.KeyGenZetaHeight != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.KeyGenZetaHeight)) - i-- - dAtA[i] = 0x18 - } - if len(m.TssPubkey) > 0 { - i -= len(m.TssPubkey) - copy(dAtA[i:], m.TssPubkey) - i = encodeVarintTx(dAtA, i, uint64(len(m.TssPubkey))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateTSSVoterResponse) 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 *MsgCreateTSSVoterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateTSSVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgGasPriceVoter) 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 *MsgGasPriceVoter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgGasPriceVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Supply) > 0 { - i -= len(m.Supply) - copy(dAtA[i:], m.Supply) - i = encodeVarintTx(dAtA, i, uint64(len(m.Supply))) - i-- - dAtA[i] = 0x2a - } - if m.BlockNumber != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.BlockNumber)) - i-- - dAtA[i] = 0x20 - } - if m.Price != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Price)) - i-- - dAtA[i] = 0x18 - } - if m.ChainId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ChainId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgGasPriceVoterResponse) 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 *MsgGasPriceVoterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgGasPriceVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgNonceVoter) 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 *MsgNonceVoter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgNonceVoter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Nonce != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) + if m.Nonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) i-- dAtA[i] = 0x18 } @@ -2471,56 +2053,6 @@ func (m *MsgRemoveFromOutTxTrackerResponse) Size() (n int) { return n } -func (m *MsgUpdatePermissionFlags) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.IsInboundEnabled { - n += 2 - } - return n -} - -func (m *MsgUpdatePermissionFlagsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUpdateKeygen) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Block != 0 { - n += 1 + sovTx(uint64(m.Block)) - } - return n -} - -func (m *MsgUpdateKeygenResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgCreateTSSVoter) Size() (n int) { if m == nil { return 0 @@ -3134,309 +2666,6 @@ func (m *MsgRemoveFromOutTxTrackerResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdatePermissionFlags) 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 ErrIntOverflowTx - } - 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: MsgUpdatePermissionFlags: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdatePermissionFlags: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - 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 ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsInboundEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsInboundEnabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdatePermissionFlagsResponse) 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 ErrIntOverflowTx - } - 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: MsgUpdatePermissionFlagsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdatePermissionFlagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateKeygen) 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 ErrIntOverflowTx - } - 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: MsgUpdateKeygen: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateKeygen: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - 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 ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - m.Block = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Block |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateKeygenResponse) 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 ErrIntOverflowTx - } - 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: MsgUpdateKeygenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateKeygenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgCreateTSSVoter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/emissions/types/emission_tracker.pb.go b/x/emissions/types/emission_tracker.pb.go deleted file mode 100644 index da5ac200e3..0000000000 --- a/x/emissions/types/emission_tracker.pb.go +++ /dev/null @@ -1,389 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/emission_tracker.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/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 - -type EmissionCategory int32 - -const ( - EmissionCategory_ObserverEmission EmissionCategory = 0 - EmissionCategory_ValidatorEmission EmissionCategory = 1 - EmissionCategory_TssSignerEmission EmissionCategory = 2 -) - -var EmissionCategory_name = map[int32]string{ - 0: "ObserverEmission", - 1: "ValidatorEmission", - 2: "TssSignerEmission", -} - -var EmissionCategory_value = map[string]int32{ - "ObserverEmission": 0, - "ValidatorEmission": 1, - "TssSignerEmission": 2, -} - -func (x EmissionCategory) String() string { - return proto.EnumName(EmissionCategory_name, int32(x)) -} - -func (EmissionCategory) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_505f49a0e8f6bd11, []int{0} -} - -// Tracker is used to track undistrubuted amounts -// Post calculations azeta values are always whole numbers as azeta can never be transferred using decimals -type EmissionTracker struct { - Category EmissionCategory `protobuf:"varint,1,opt,name=category,proto3,enum=zetachain.zetacore.emissions.EmissionCategory" json:"category,omitempty"` - UndistributedAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=undistributed_amount,json=undistributedAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"undistributed_amount" yaml:"undistributed_amount"` -} - -func (m *EmissionTracker) Reset() { *m = EmissionTracker{} } -func (m *EmissionTracker) String() string { return proto.CompactTextString(m) } -func (*EmissionTracker) ProtoMessage() {} -func (*EmissionTracker) Descriptor() ([]byte, []int) { - return fileDescriptor_505f49a0e8f6bd11, []int{0} -} -func (m *EmissionTracker) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EmissionTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EmissionTracker.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 *EmissionTracker) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmissionTracker.Merge(m, src) -} -func (m *EmissionTracker) XXX_Size() int { - return m.Size() -} -func (m *EmissionTracker) XXX_DiscardUnknown() { - xxx_messageInfo_EmissionTracker.DiscardUnknown(m) -} - -var xxx_messageInfo_EmissionTracker proto.InternalMessageInfo - -func (m *EmissionTracker) GetCategory() EmissionCategory { - if m != nil { - return m.Category - } - return EmissionCategory_ObserverEmission -} - -func init() { - proto.RegisterEnum("zetachain.zetacore.emissions.EmissionCategory", EmissionCategory_name, EmissionCategory_value) - proto.RegisterType((*EmissionTracker)(nil), "zetachain.zetacore.emissions.EmissionTracker") -} - -func init() { proto.RegisterFile("emissions/emission_tracker.proto", fileDescriptor_505f49a0e8f6bd11) } - -var fileDescriptor_505f49a0e8f6bd11 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xcd, 0xcd, 0x2c, - 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x87, 0xb1, 0xe2, 0x4b, 0x8a, 0x12, 0x93, 0xb3, 0x53, 0x8b, - 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x64, 0xaa, 0x52, 0x4b, 0x12, 0x93, 0x33, 0x12, 0x33, - 0xf3, 0xf4, 0xc0, 0xac, 0xfc, 0xa2, 0x54, 0x3d, 0xb8, 0x26, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, - 0xb0, 0x42, 0x7d, 0x10, 0x0b, 0xa2, 0x47, 0xe9, 0x01, 0x23, 0x17, 0xbf, 0x2b, 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0x58, 0x56, 0x2c, 0x91, 0x63, 0x74, 0xf2, 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, - 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, - 0xc6, 0x63, 0x39, 0x86, 0x28, 0x03, 0x24, 0x3f, 0x81, 0x02, 0x4d, 0x17, 0x1c, 0x7e, 0xfa, 0xb0, - 0xf0, 0xd3, 0xaf, 0xd0, 0x47, 0xc4, 0x28, 0xd8, 0x87, 0x49, 0x6c, 0xe0, 0x38, 0x31, 0x06, 0x04, - 0x00, 0x00, 0xff, 0xff, 0x6f, 0x9c, 0x73, 0xfd, 0xeb, 0x01, 0x00, 0x00, -} - -func (m *EmissionTracker) 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 *EmissionTracker) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EmissionTracker) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.UndistributedAmount.Size() - i -= size - if _, err := m.UndistributedAmount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintEmissionTracker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.Category != 0 { - i = encodeVarintEmissionTracker(dAtA, i, uint64(m.Category)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintEmissionTracker(dAtA []byte, offset int, v uint64) int { - offset -= sovEmissionTracker(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EmissionTracker) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Category != 0 { - n += 1 + sovEmissionTracker(uint64(m.Category)) - } - l = m.UndistributedAmount.Size() - n += 1 + l + sovEmissionTracker(uint64(l)) - return n -} - -func sovEmissionTracker(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEmissionTracker(x uint64) (n int) { - return sovEmissionTracker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *EmissionTracker) 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 ErrIntOverflowEmissionTracker - } - 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: EmissionTracker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EmissionTracker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType) - } - m.Category = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEmissionTracker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Category |= EmissionCategory(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UndistributedAmount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEmissionTracker - } - 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 ErrInvalidLengthEmissionTracker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEmissionTracker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UndistributedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEmissionTracker(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEmissionTracker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEmissionTracker(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, ErrIntOverflowEmissionTracker - } - 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, ErrIntOverflowEmissionTracker - } - 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, ErrIntOverflowEmissionTracker - } - 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, ErrInvalidLengthEmissionTracker - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEmissionTracker - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEmissionTracker - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthEmissionTracker = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEmissionTracker = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEmissionTracker = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/emissions/types/parsers.go b/x/emissions/types/parsers.go deleted file mode 100644 index 975a3870f5..0000000000 --- a/x/emissions/types/parsers.go +++ /dev/null @@ -1,6 +0,0 @@ -package types - -func ParseStringToEmissionCategory(category string) EmissionCategory { - c := EmissionCategory_value[category] - return EmissionCategory(c) -} diff --git a/x/observer/abci.go b/x/observer/abci.go new file mode 100644 index 0000000000..991b92159c --- /dev/null +++ b/x/observer/abci.go @@ -0,0 +1,36 @@ +package observer + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/zeta-chain/zetacore/x/observer/keeper" + "github.com/zeta-chain/zetacore/x/observer/types" + "math" +) + +func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { + lastBlockObserverCount, found := k.GetLastObserverCount(ctx) + if !found { + ctx.Logger().Error("LastBlockObserverCount not found at height", ctx.BlockHeight()) + return + } + + allObservers := k.GetAllObserverMappers(ctx) + totalObserverCountCurrentBlock := 0 + for _, observer := range allObservers { + totalObserverCountCurrentBlock += len(observer.ObserverList) + } + if totalObserverCountCurrentBlock < 0 { + ctx.Logger().Error("TotalObserverCount is negative at height", ctx.BlockHeight()) + return + } + if totalObserverCountCurrentBlock == int(lastBlockObserverCount.Count) { + return + } + ctx.Logger().Error("LastBlockObserverCount does not match the number of observers found at current height", ctx.BlockHeight()) + for _, observer := range allObservers { + ctx.Logger().Error("Observes for | ", observer.ObserverChain.ChainName, ":", observer.ObserverList) + } + k.SetPermissionFlags(ctx, types.PermissionFlags{IsInboundEnabled: false}) + k.SetKeygen(ctx, types.Keygen{BlockNumber: math.MaxInt64}) + k.SetLastObserverCount(ctx, &types.LastObserverCount{Count: uint64(totalObserverCountCurrentBlock), LastChangeHeight: ctx.BlockHeight()}) +} diff --git a/x/crosschain/client/cli/cli_keygen.go b/x/observer/client/cli/cli_keygen.go similarity index 92% rename from x/crosschain/client/cli/cli_keygen.go rename to x/observer/client/cli/cli_keygen.go index 16f733b35c..d48fefc34d 100644 --- a/x/crosschain/client/cli/cli_keygen.go +++ b/x/observer/client/cli/cli_keygen.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) func CmdShowKeygen() *cobra.Command { diff --git a/x/observer/client/cli/cli_node_account.go b/x/observer/client/cli/cli_node_account.go new file mode 100644 index 0000000000..ae745e26a1 --- /dev/null +++ b/x/observer/client/cli/cli_node_account.go @@ -0,0 +1,71 @@ +package cli + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/spf13/cobra" + "github.com/zeta-chain/zetacore/x/observer/types" +) + +func CmdListNodeAccount() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-node-account", + Short: "list all NodeAccount", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllNodeAccountRequest{ + Pagination: pageReq, + } + + res, err := queryClient.NodeAccountAll(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowNodeAccount() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-node-account [index]", + Short: "shows a NodeAccount", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryGetNodeAccountRequest{ + Index: args[0], + } + + res, err := queryClient.NodeAccount(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/observer/client/cli/query.go b/x/observer/client/cli/query.go index da955e7202..8d58e79802 100644 --- a/x/observer/client/cli/query.go +++ b/x/observer/client/cli/query.go @@ -34,6 +34,12 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdGetCoreParamsForChain()) cmd.AddCommand(CmdGetCoreParams()) + cmd.AddCommand(CmdListNodeAccount()) + cmd.AddCommand(CmdShowNodeAccount()) + cmd.AddCommand(CmdShowPermissionFlags()) + cmd.AddCommand(CmdShowKeygen()) + + cmd.AddCommand(CmdShowObserverCount()) cmd.AddCommand(CmdBlameByIdentifier()) cmd.AddCommand(CmdGetAllBlameRecords()) diff --git a/x/crosschain/client/cli/query_permission_flags.go b/x/observer/client/cli/query_permission_flags.go similarity index 93% rename from x/crosschain/client/cli/query_permission_flags.go rename to x/observer/client/cli/query_permission_flags.go index ce5d8d115f..a1e27a6977 100644 --- a/x/crosschain/client/cli/query_permission_flags.go +++ b/x/observer/client/cli/query_permission_flags.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) func CmdShowPermissionFlags() *cobra.Command { diff --git a/x/observer/client/cli/query_show_observer_count.go b/x/observer/client/cli/query_show_observer_count.go new file mode 100644 index 0000000000..afa714943f --- /dev/null +++ b/x/observer/client/cli/query_show_observer_count.go @@ -0,0 +1,42 @@ +package cli + +import ( + "strconv" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/spf13/cobra" + "github.com/zeta-chain/zetacore/x/observer/types" +) + +var _ = strconv.Itoa(0) + +func CmdShowObserverCount() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-observer-count", + Short: "Query show-observer-count", + Args: cobra.ExactArgs(0), + RunE: func(cmd *cobra.Command, args []string) (err error) { + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryShowObserverCountRequest{} + + res, err := queryClient.ShowObserverCount(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/observer/client/cli/tx.go b/x/observer/client/cli/tx.go index af7d99ad79..ca8a05ff66 100644 --- a/x/observer/client/cli/tx.go +++ b/x/observer/client/cli/tx.go @@ -2,9 +2,8 @@ package cli import ( "fmt" - "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" + "github.com/spf13/cobra" // "github.com/cosmos/cosmos-sdk/client/flags" "github.com/zeta-chain/zetacore/x/observer/types" ) @@ -21,6 +20,9 @@ func GetTxCmd() *cobra.Command { //cmd.AddCommand(CmdSetSupportedChains()) //cmd.AddCommand(CmdAddObserver()) cmd.AddCommand(CmdUpdateCoreParams()) + cmd.AddCommand(CmdUpdatePermissionFlags()) + cmd.AddCommand(CmdUpdateKeygen()) + cmd.AddCommand(CmdAddBlameVote()) cmd.AddCommand(CmdEncode()) // this line is used by starport scaffolding # 1 diff --git a/x/crosschain/client/cli/tx_permission_flags.go b/x/observer/client/cli/tx_permission_flags.go similarity index 94% rename from x/crosschain/client/cli/tx_permission_flags.go rename to x/observer/client/cli/tx_permission_flags.go index 10de601201..9a54d74d86 100644 --- a/x/crosschain/client/cli/tx_permission_flags.go +++ b/x/observer/client/cli/tx_permission_flags.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" "strconv" ) diff --git a/x/crosschain/client/cli/tx_update_keygen.go b/x/observer/client/cli/tx_update_keygen.go similarity index 94% rename from x/crosschain/client/cli/tx_update_keygen.go rename to x/observer/client/cli/tx_update_keygen.go index 99dbbe914f..3c9408d0d7 100644 --- a/x/crosschain/client/cli/tx_update_keygen.go +++ b/x/observer/client/cli/tx_update_keygen.go @@ -1,13 +1,13 @@ package cli import ( + "github.com/zeta-chain/zetacore/x/observer/types" "strconv" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/zeta-chain/zetacore/x/crosschain/types" ) var _ = strconv.Itoa(0) diff --git a/x/observer/client/querytests/cli_test.go b/x/observer/client/querytests/cli_test.go new file mode 100644 index 0000000000..861af2e718 --- /dev/null +++ b/x/observer/client/querytests/cli_test.go @@ -0,0 +1,62 @@ +package querytests + +import ( + "fmt" + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/cosmos/cosmos-sdk/crypto/keyring" + pruningtypes "github.com/cosmos/cosmos-sdk/pruning/types" + servertypes "github.com/cosmos/cosmos-sdk/server/types" + "github.com/cosmos/cosmos-sdk/simapp" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/stretchr/testify/suite" + tmdb "github.com/tendermint/tm-db" + "github.com/zeta-chain/zetacore/app" + "github.com/zeta-chain/zetacore/cmd/zetacored/config" + "github.com/zeta-chain/zetacore/testutil/network" + "testing" + "time" +) + +func TestCLIQuerySuite(t *testing.T) { + cfg := CliTestConfig() + suite.Run(t, NewCLITestSuite(cfg)) +} + +func CliTestConfig() network.Config { + encoding := app.MakeEncodingConfig() + return network.Config{ + Codec: encoding.Codec, + TxConfig: encoding.TxConfig, + LegacyAmino: encoding.Amino, + InterfaceRegistry: encoding.InterfaceRegistry, + AccountRetriever: authtypes.AccountRetriever{}, + AppConstructor: func(val network.Validator) servertypes.Application { + return app.New( + val.Ctx.Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.Ctx.Config.RootDir, 0, + encoding, + simapp.EmptyAppOptions{}, + baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), + baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), + ) + }, + GenesisState: app.ModuleBasics.DefaultGenesis(encoding.Codec), + TimeoutCommit: 2 * time.Second, + ChainID: "athens_8888-2", + NumOfValidators: 2, + Mnemonics: []string{ + "race draft rival universe maid cheese steel logic crowd fork comic easy truth drift tomorrow eye buddy head time cash swing swift midnight borrow", + "hand inmate canvas head lunar naive increase recycle dog ecology inhale december wide bubble hockey dice worth gravity ketchup feed balance parent secret orchard", + }, + BondDenom: config.BaseDenom, + MinGasPrices: fmt.Sprintf("0.000006%s", config.BaseDenom), + AccountTokens: sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction), + StakingTokens: sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction), + BondedTokens: sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction), + PruningStrategy: pruningtypes.PruningOptionNothing, + CleanupDir: true, + SigningAlgo: string(hd.Secp256k1Type), + KeyringOptions: []keyring.Option{}, + } +} diff --git a/x/crosschain/client/querytests/keygen.go b/x/observer/client/querytests/keygen.go similarity index 81% rename from x/crosschain/client/querytests/keygen.go rename to x/observer/client/querytests/keygen.go index 62fbeddd08..06d95170dc 100644 --- a/x/crosschain/client/querytests/keygen.go +++ b/x/observer/client/querytests/keygen.go @@ -4,14 +4,14 @@ import ( "fmt" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/zeta-chain/zetacore/x/crosschain/client/cli" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/client/cli" + observerTypes "github.com/zeta-chain/zetacore/x/observer/types" "google.golang.org/grpc/status" ) func (s *CliTestSuite) TestShowKeygen() { ctx := s.network.Validators[0].ClientCtx - obj := s.state.Keygen + obj := s.observerState.Keygen common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } @@ -19,7 +19,7 @@ func (s *CliTestSuite) TestShowKeygen() { desc string args []string err error - obj *types.Keygen + obj *observerTypes.Keygen }{ { desc: "get", @@ -38,7 +38,7 @@ func (s *CliTestSuite) TestShowKeygen() { s.Require().ErrorIs(stat.Err(), tc.err) } else { s.Require().NoError(err) - var resp types.QueryGetKeygenResponse + var resp observerTypes.QueryGetKeygenResponse s.Require().NoError(s.network.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) s.Require().NotNil(resp.Keygen) s.Require().Equal(tc.obj, resp.Keygen) diff --git a/x/crosschain/client/querytests/node_account.go b/x/observer/client/querytests/node_account.go similarity index 82% rename from x/crosschain/client/querytests/node_account.go rename to x/observer/client/querytests/node_account.go index d7b4730774..fd2880676f 100644 --- a/x/crosschain/client/querytests/node_account.go +++ b/x/observer/client/querytests/node_account.go @@ -4,15 +4,15 @@ import ( "fmt" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/zeta-chain/zetacore/x/crosschain/client/cli" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/client/cli" + zetaObserverTypes "github.com/zeta-chain/zetacore/x/observer/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) func (s *CliTestSuite) TestShowNodeAccount() { ctx := s.network.Validators[0].ClientCtx - objs := s.state.NodeAccountList + objs := s.observerState.NodeAccountList common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } @@ -21,7 +21,7 @@ func (s *CliTestSuite) TestShowNodeAccount() { id string args []string err error - obj *types.NodeAccount + obj *zetaObserverTypes.NodeAccount }{ { desc: "found", @@ -47,7 +47,7 @@ func (s *CliTestSuite) TestShowNodeAccount() { s.Require().ErrorIs(stat.Err(), tc.err) } else { s.Require().NoError(err) - var resp types.QueryGetNodeAccountResponse + var resp zetaObserverTypes.QueryGetNodeAccountResponse s.Require().NoError(s.network.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) s.Require().NotNil(resp.NodeAccount) s.Require().Equal(tc.obj, resp.NodeAccount) diff --git a/x/crosschain/client/querytests/permission_flags.go b/x/observer/client/querytests/permission_flags.go similarity index 88% rename from x/crosschain/client/querytests/permission_flags.go rename to x/observer/client/querytests/permission_flags.go index 8a64fc7ebb..6d4035a205 100644 --- a/x/crosschain/client/querytests/permission_flags.go +++ b/x/observer/client/querytests/permission_flags.go @@ -5,14 +5,14 @@ import ( clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" tmcli "github.com/tendermint/tendermint/libs/cli" "github.com/zeta-chain/zetacore/testutil/nullify" - "github.com/zeta-chain/zetacore/x/crosschain/client/cli" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/client/cli" + "github.com/zeta-chain/zetacore/x/observer/types" "google.golang.org/grpc/status" ) func (s *CliTestSuite) TestShowPermissionFlags() { ctx := s.network.Validators[0].ClientCtx - obj := s.state.PermissionFlags + obj := s.observerState.PermissionFlags common := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } diff --git a/x/observer/client/querytests/suite.go b/x/observer/client/querytests/suite.go new file mode 100644 index 0000000000..644cdb36da --- /dev/null +++ b/x/observer/client/querytests/suite.go @@ -0,0 +1,135 @@ +package querytests + +import ( + "cosmossdk.io/math" + "fmt" + sdk "github.com/cosmos/cosmos-sdk/types" + ethcfg "github.com/evmos/ethermint/cmd/config" + "github.com/stretchr/testify/suite" + "github.com/zeta-chain/zetacore/app" + cmdcfg "github.com/zeta-chain/zetacore/cmd/zetacored/config" + "github.com/zeta-chain/zetacore/testutil/network" + "github.com/zeta-chain/zetacore/testutil/nullify" + "github.com/zeta-chain/zetacore/x/crosschain/types" + observerTypes "github.com/zeta-chain/zetacore/x/observer/types" + "strconv" +) + +type CliTestSuite struct { + suite.Suite + + cfg network.Config + network *network.Network + crossChainState *types.GenesisState + observerState *observerTypes.GenesisState +} + +func NewCLITestSuite(cfg network.Config) *CliTestSuite { + return &CliTestSuite{cfg: cfg} +} + +func (s *CliTestSuite) Setconfig() { + config := sdk.GetConfig() + cmdcfg.SetBech32Prefixes(config) + ethcfg.SetBip44CoinType(config) + // Make sure address is compatible with ethereum + config.SetAddressVerifier(app.VerifyAddressFormat) + config.Seal() +} +func (s *CliTestSuite) SetupSuite() { + s.T().Log("setting up integration test suite") + s.Setconfig() + minOBsDel, ok := sdk.NewIntFromString("100000000000000000000") + s.Require().True(ok) + s.cfg.StakingTokens = minOBsDel.Mul(sdk.NewInt(int64(10))) + s.cfg.BondedTokens = minOBsDel + observerList := []string{"zeta13c7p3xrhd6q2rx3h235jpt8pjdwvacyw6twpax", + "zeta1f203dypqg5jh9hqfx0gfkmmnkdfuat3jr45ep2", + } + s.cfg.GenesisState = network.SetupZetaGenesisState(s.T(), s.cfg.GenesisState, s.cfg.Codec, observerList) + s.AddCrossChainData(2) + s.AddObserverData(2) + net, err := network.New(s.T(), app.NodeDir, s.cfg) + s.Assert().NoError(err) + s.network = net + _, err = s.network.WaitForHeight(1) + s.Require().NoError(err) + +} + +func (s *CliTestSuite) TearDownSuite() { + s.T().Log("tearing down genesis test suite") + s.network.Cleanup() +} +func (s *CliTestSuite) AddObserverData(n int) { + state := observerTypes.GenesisState{} + s.Require().NoError(s.cfg.Codec.UnmarshalJSON(s.cfg.GenesisState[observerTypes.ModuleName], &state)) + for i := 0; i < n; i++ { + state.NodeAccountList = append(state.NodeAccountList, &observerTypes.NodeAccount{Operator: strconv.Itoa(i), GranteeAddress: "signer"}) + } + permissionFlags := &observerTypes.PermissionFlags{} + nullify.Fill(&permissionFlags) + state.PermissionFlags = permissionFlags + state.Keygen = &observerTypes.Keygen{BlockNumber: 10, GranteePubkeys: []string{}} + buf, err := s.cfg.Codec.MarshalJSON(&state) + s.Require().NoError(err) + s.cfg.GenesisState[observerTypes.ModuleName] = buf + s.observerState = &state +} +func (s *CliTestSuite) AddCrossChainData(n int) { + state := types.GenesisState{} + s.Require().NoError(s.cfg.Codec.UnmarshalJSON(s.cfg.GenesisState[types.ModuleName], &state)) + // TODO : Fix add EVM balance to deploy contracts + for i := 0; i < n; i++ { + state.CrossChainTxs = append(state.CrossChainTxs, &types.CrossChainTx{ + Creator: "ANY", + Index: strconv.Itoa(i), + CctxStatus: &types.Status{ + Status: types.CctxStatus_PendingInbound, + StatusMessage: "", + LastUpdateTimestamp: 0, + }, + InboundTxParams: &types.InboundTxParams{InboundTxObservedHash: fmt.Sprintf("Hash-%d", i), Amount: math.OneUint()}, + OutboundTxParams: []*types.OutboundTxParams{}, + ZetaFees: math.OneUint()}, + ) + } + for i := 0; i < n; i++ { + state.ChainNoncesList = append(state.ChainNoncesList, &types.ChainNonces{Creator: "ANY", Index: strconv.Itoa(i), Signers: []string{}}) + } + for i := 0; i < n; i++ { + state.GasPriceList = append(state.GasPriceList, &types.GasPrice{Creator: "ANY", ChainId: int64(i), Index: strconv.Itoa(i), Prices: []uint64{}, BlockNums: []uint64{}, Signers: []string{}}) + } + for i := 0; i < n; i++ { + state.LastBlockHeightList = append(state.LastBlockHeightList, &types.LastBlockHeight{Creator: "ANY", Index: strconv.Itoa(i)}) + } + state.Tss = &types.TSS{ + TssPubkey: "tssPubkey", + TssParticipantList: []string{"tssParticipantList"}, + OperatorAddressList: []string{"operatorAddressList"}, + FinalizedZetaHeight: 1, + KeyGenZetaHeight: 1, + } + for i := 0; i < n; i++ { + outTxTracker := types.OutTxTracker{ + Index: fmt.Sprintf("%d-%d", i, i), + ChainId: int64(i), + Nonce: uint64(i), + } + nullify.Fill(&outTxTracker) + state.OutTxTrackerList = append(state.OutTxTrackerList, outTxTracker) + } + + for i := 0; i < n; i++ { + inTxHashToCctx := types.InTxHashToCctx{ + InTxHash: strconv.Itoa(i), + } + nullify.Fill(&inTxHashToCctx) + state.InTxHashToCctxList = append(state.InTxHashToCctxList, inTxHashToCctx) + } + + buf, err := s.cfg.Codec.MarshalJSON(&state) + s.Require().NoError(err) + s.cfg.GenesisState[types.ModuleName] = buf + s.crossChainState = &state +} diff --git a/x/observer/genesis.go b/x/observer/genesis.go index c50e07cf28..1f5ffe2b4a 100644 --- a/x/observer/genesis.go +++ b/x/observer/genesis.go @@ -15,15 +15,51 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetObserverMapper(ctx, mapper) } k.SetCoreParams(ctx, types.GetCoreParams()) + // Set all the nodeAccount + for _, elem := range genState.NodeAccountList { + k.SetNodeAccount(ctx, *elem) + } k.SetParams(ctx, types.DefaultParams()) + // Set if defined + if genState.PermissionFlags != nil { + k.SetPermissionFlags(ctx, *genState.PermissionFlags) + } else { + k.SetPermissionFlags(ctx, types.PermissionFlags{IsInboundEnabled: true}) + } + // Set if defined + if genState.Keygen != nil { + k.SetKeygen(ctx, *genState.Keygen) + } + } // ExportGenesis returns the capability module's exported genesis. func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { params := k.GetParams(ctx) + // Get all nodeAccount + nodeAccountList := k.GetAllNodeAccount(ctx) + nodeAccounts := make([]*types.NodeAccount, len(nodeAccountList)) + for i, elem := range nodeAccountList { + nodeAccounts[i] = &elem // #nosec G601 // false positive + } + // Get all permissionFlags + pf := types.PermissionFlags{IsInboundEnabled: true} + permissionFlags, found := k.GetPermissionFlags(ctx) + if found { + pf = permissionFlags + } + kn := &types.Keygen{} + keygen, found := k.GetKeygen(ctx) + if found { + kn = &keygen + } + return &types.GenesisState{ - Ballots: k.GetAllBallots(ctx), - Observers: k.GetAllObserverMappers(ctx), - Params: ¶ms, + Ballots: k.GetAllBallots(ctx), + Observers: k.GetAllObserverMappers(ctx), + Params: ¶ms, + NodeAccountList: nodeAccounts, + PermissionFlags: &pf, + Keygen: kn, } } diff --git a/x/observer/handler.go b/x/observer/handler.go index 752ad158ff..d94d633733 100644 --- a/x/observer/handler.go +++ b/x/observer/handler.go @@ -20,6 +20,12 @@ func NewHandler(k keeper.Keeper) sdk.Handler { case *types.MsgUpdateCoreParams: res, err := msgServer.UpdateCoreParams(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgUpdateKeygen: + res, err := msgServer.UpdateKeygen(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgUpdatePermissionFlags: + res, err := msgServer.UpdatePermissionFlags(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) // this line is used by starport scaffolding # 1 default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) diff --git a/x/observer/keeper/events.go b/x/observer/keeper/events.go index c4372afc5f..487521792e 100644 --- a/x/observer/keeper/events.go +++ b/x/observer/keeper/events.go @@ -1,20 +1,32 @@ package keeper import ( + types2 "github.com/coinbase/rosetta-sdk-go/types" sdk "github.com/cosmos/cosmos-sdk/types" + "strconv" types "github.com/zeta-chain/zetacore/x/observer/types" ) -func EmitEventBallotCreated(ctx sdk.Context, ballot types.Ballot, observationHash, obserVationChain, msgURL string) { +func EmitEventBallotCreated(ctx sdk.Context, ballot types.Ballot, observationHash, observationChain string) { err := ctx.EventManager().EmitTypedEvent(&types.EventBallotCreated{ - MsgTypeUrl: msgURL, BallotIdentifier: ballot.BallotIdentifier, BallotType: ballot.ObservationType.String(), ObservationHash: observationHash, - ObservationChain: obserVationChain, + ObservationChain: observationChain, }) if err != nil { ctx.Logger().Error("failed to emit EventBallotCreated : %s", err.Error()) } } + +func EmitEventKeyGenBlockUpdated(ctx sdk.Context, keygen *types.Keygen) { + err := ctx.EventManager().EmitTypedEvents(&types.EventKeygenBlockUpdated{ + MsgTypeUrl: sdk.MsgTypeURL(&types.MsgUpdateKeygen{}), + KeygenBlock: strconv.Itoa(int(keygen.BlockNumber)), + KeygenPubkeys: types2.PrettyPrintStruct(keygen.GranteePubkeys), + }) + if err != nil { + ctx.Logger().Error("Error emitting EventKeygenBlockUpdated :", err) + } +} diff --git a/x/crosschain/keeper/grpc_query_permission_flags.go b/x/observer/keeper/grpc_query_permission_flags.go similarity index 91% rename from x/crosschain/keeper/grpc_query_permission_flags.go rename to x/observer/keeper/grpc_query_permission_flags.go index 4dfe612584..c3d48a2905 100644 --- a/x/crosschain/keeper/grpc_query_permission_flags.go +++ b/x/observer/keeper/grpc_query_permission_flags.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/observer/keeper/grpc_query_show_observer_count.go b/x/observer/keeper/grpc_query_show_observer_count.go new file mode 100644 index 0000000000..47b140f96e --- /dev/null +++ b/x/observer/keeper/grpc_query_show_observer_count.go @@ -0,0 +1,27 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/zeta-chain/zetacore/x/observer/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) ShowObserverCount(goCtx context.Context, req *types.QueryShowObserverCountRequest) (*types.QueryShowObserverCountResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + lb, found := k.GetLastObserverCount(ctx) + if !found { + return nil, status.Error(codes.NotFound, "last observer count not found") + } + + return &types.QueryShowObserverCountResponse{ + LastObserverCount: &lb, + }, nil +} diff --git a/x/crosschain/keeper/keeper_keygen.go b/x/observer/keeper/keeper_keygen.go similarity index 96% rename from x/crosschain/keeper/keeper_keygen.go rename to x/observer/keeper/keeper_keygen.go index 0630538ef7..a0e4e8fe51 100644 --- a/x/crosschain/keeper/keeper_keygen.go +++ b/x/observer/keeper/keeper_keygen.go @@ -4,7 +4,7 @@ import ( "context" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/crosschain/keeper/keeper_keygen_test.go b/x/observer/keeper/keeper_keygen_test.go similarity index 89% rename from x/crosschain/keeper/keeper_keygen_test.go rename to x/observer/keeper/keeper_keygen_test.go index ab6ee4b620..03e2190bf3 100644 --- a/x/crosschain/keeper/keeper_keygen_test.go +++ b/x/observer/keeper/keeper_keygen_test.go @@ -2,12 +2,13 @@ package keeper import ( "github.com/stretchr/testify/require" + "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/assert" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) // Keeper Tests @@ -20,14 +21,14 @@ func createTestKeygen(keeper *Keeper, ctx sdk.Context) types.Keygen { } func TestKeygenGet(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) item := createTestKeygen(keeper, ctx) rst, found := keeper.GetKeygen(ctx) assert.True(t, found) assert.Equal(t, item, rst) } func TestKeygenRemove(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) createTestKeygen(keeper, ctx) keeper.RemoveKeygen(ctx) _, found := keeper.GetKeygen(ctx) @@ -37,7 +38,7 @@ func TestKeygenRemove(t *testing.T) { // Querier Tests func TestKeygenQuery(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) wctx := sdk.WrapSDKContext(ctx) item := createTestKeygen(keeper, ctx) for _, tc := range []struct { diff --git a/x/crosschain/keeper/keeper_node_account.go b/x/observer/keeper/keeper_node_account.go similarity index 92% rename from x/crosschain/keeper/keeper_node_account.go rename to x/observer/keeper/keeper_node_account.go index a592ffb718..19436b55dc 100644 --- a/x/crosschain/keeper/keeper_node_account.go +++ b/x/observer/keeper/keeper_node_account.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) @@ -96,10 +96,3 @@ func (k Keeper) NodeAccount(c context.Context, req *types.QueryGetNodeAccountReq return &types.QueryGetNodeAccountResponse{NodeAccount: &val}, nil } - -// MESSAGES - -// Not implemented yet. -func (k msgServer) SetNodeKeys(_ context.Context, _ *types.MsgSetNodeKeys) (*types.MsgSetNodeKeysResponse, error) { - return &types.MsgSetNodeKeysResponse{}, nil -} diff --git a/x/crosschain/keeper/keeper_node_account_test.go b/x/observer/keeper/keeper_node_account_test.go similarity index 94% rename from x/crosschain/keeper/keeper_node_account_test.go rename to x/observer/keeper/keeper_node_account_test.go index fb48880ab0..61f3f7ca5b 100644 --- a/x/crosschain/keeper/keeper_node_account_test.go +++ b/x/observer/keeper/keeper_node_account_test.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/assert" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) // Keeper Tests @@ -26,7 +26,7 @@ func createNNodeAccount(keeper *Keeper, ctx sdk.Context, n int) []types.NodeAcco } func TestNodeAccountGet(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) items := createNNodeAccount(keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetNodeAccount(ctx, item.Operator) @@ -35,7 +35,7 @@ func TestNodeAccountGet(t *testing.T) { } } func TestNodeAccountRemove(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) items := createNNodeAccount(keeper, ctx, 10) for _, item := range items { keeper.RemoveNodeAccount(ctx, item.Operator) @@ -45,7 +45,7 @@ func TestNodeAccountRemove(t *testing.T) { } func TestNodeAccountGetAll(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) items := createNNodeAccount(keeper, ctx, 10) assert.Equal(t, items, keeper.GetAllNodeAccount(ctx)) } @@ -53,7 +53,7 @@ func TestNodeAccountGetAll(t *testing.T) { // Querier Tests func TestNodeAccountQuerySingle(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) wctx := sdk.WrapSDKContext(ctx) msgs := createNNodeAccount(keeper, ctx, 2) for _, tc := range []struct { @@ -95,7 +95,7 @@ func TestNodeAccountQuerySingle(t *testing.T) { } func TestNodeAccountQueryPaginated(t *testing.T) { - keeper, ctx := setupKeeper(t) + keeper, ctx := SetupKeeper(t) wctx := sdk.WrapSDKContext(ctx) msgs := createNNodeAccount(keeper, ctx, 5) diff --git a/x/observer/keeper/keeper_supported_chains_test.go b/x/observer/keeper/keeper_supported_chains_test.go deleted file mode 100644 index 3a049202a4..0000000000 --- a/x/observer/keeper/keeper_supported_chains_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package keeper - -// Not needed moved to params -//func TestKeeper_SupportedChains(t *testing.T) { -// keeper, ctx := SetupKeeper(t) -// list := []*common.Chain{ -// { -// ChainName: common.ChainName_eth_mainnet, -// ChainId: 1, -// }, -// { -// ChainName: common.ChainName_btc_mainnet, -// ChainId: 2, -// }, -// { -// ChainName: common.ChainName_bsc_mainnet, -// ChainId: 3, -// }, -// } -// -// keeper.SetSupportedChain(ctx, types.SupportedChains{ChainList: list}) -// getList, found := keeper.GetSupportedChains(ctx) -// assert.True(t, found) -// assert.Equal(t, list, getList.ChainList) -//} diff --git a/x/observer/keeper/msg_server_add_blame_vote.go b/x/observer/keeper/msg_server_add_blame_vote.go index 5dcf0c9ed5..58b8a373c4 100644 --- a/x/observer/keeper/msg_server_add_blame_vote.go +++ b/x/observer/keeper/msg_server_add_blame_vote.go @@ -32,7 +32,7 @@ func (k msgServer) AddBlameVote(goCtx context.Context, vote *types.MsgAddBlameVo } if isNew { - EmitEventBallotCreated(ctx, ballot, vote.BlameInfo.Index, observationChain.String(), sdk.MsgTypeURL(&types.MsgAddBlameVote{})) + EmitEventBallotCreated(ctx, ballot, vote.BlameInfo.Index, observationChain.String()) } // AddVoteToBallot adds a vote and sets the ballot diff --git a/x/crosschain/keeper/msg_server_permission_flags.go b/x/observer/keeper/msg_server_permission_flags.go similarity index 70% rename from x/crosschain/keeper/msg_server_permission_flags.go rename to x/observer/keeper/msg_server_permission_flags.go index 266da0acda..6423a1a189 100644 --- a/x/crosschain/keeper/msg_server_permission_flags.go +++ b/x/observer/keeper/msg_server_permission_flags.go @@ -3,11 +3,9 @@ package keeper import ( "context" - zetaObserverTypes "github.com/zeta-chain/zetacore/x/observer/types" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) // Updates permissions. Currently, this is only used to enable/disable the @@ -16,8 +14,8 @@ import ( // Only the admin policy account is authorized to broadcast this message. func (k msgServer) UpdatePermissionFlags(goCtx context.Context, msg *types.MsgUpdatePermissionFlags) (*types.MsgUpdatePermissionFlagsResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - if msg.Creator != k.zetaObserverKeeper.GetParams(ctx).GetAdminPolicyAccount(zetaObserverTypes.Policy_Type_stop_inbound_cctx) { - return &types.MsgUpdatePermissionFlagsResponse{}, zetaObserverTypes.ErrNotAuthorizedPolicy + if msg.Creator != k.GetParams(ctx).GetAdminPolicyAccount(types.Policy_Type_stop_inbound_cctx) { + return &types.MsgUpdatePermissionFlagsResponse{}, types.ErrNotAuthorizedPolicy } // Check if the value exists flags, isFound := k.GetPermissionFlags(ctx) diff --git a/x/crosschain/keeper/msg_server_update_keygen.go b/x/observer/keeper/msg_server_update_keygen.go similarity index 69% rename from x/crosschain/keeper/msg_server_update_keygen.go rename to x/observer/keeper/msg_server_update_keygen.go index 240f6d5ef9..e47bba7142 100644 --- a/x/crosschain/keeper/msg_server_update_keygen.go +++ b/x/observer/keeper/msg_server_update_keygen.go @@ -3,10 +3,8 @@ package keeper import ( "context" - zetaObserverTypes "github.com/zeta-chain/zetacore/x/observer/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) // Updates the block height of the keygen and sets the status to "pending @@ -16,8 +14,8 @@ import ( func (k msgServer) UpdateKeygen(goCtx context.Context, msg *types.MsgUpdateKeygen) (*types.MsgUpdateKeygenResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - if msg.Creator != k.zetaObserverKeeper.GetParams(ctx).GetAdminPolicyAccount(zetaObserverTypes.Policy_Type_update_keygen_block) { - return &types.MsgUpdateKeygenResponse{}, zetaObserverTypes.ErrNotAuthorizedPolicy + if msg.Creator != k.GetParams(ctx).GetAdminPolicyAccount(types.Policy_Type_update_keygen_block) { + return &types.MsgUpdateKeygenResponse{}, types.ErrNotAuthorizedPolicy } keygen, found := k.GetKeygen(ctx) if !found { diff --git a/x/observer/keeper/observer_mapper.go b/x/observer/keeper/observer_mapper.go index 2db993d023..569c2ecf65 100644 --- a/x/observer/keeper/observer_mapper.go +++ b/x/observer/keeper/observer_mapper.go @@ -16,6 +16,24 @@ func GetObserverMapperIndex(chain *common.Chain) string { return fmt.Sprintf("%d", chain.ChainId) } +func (k Keeper) SetLastObserverCount(ctx sdk.Context, lbc *types.LastObserverCount) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.LastBlockObserverCountKey)) + b := k.cdc.MustMarshal(lbc) + store.Set([]byte{0}, b) +} + +func (k Keeper) GetLastObserverCount(ctx sdk.Context) (val types.LastObserverCount, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.LastBlockObserverCountKey)) + + b := store.Get([]byte{0}) + if b == nil { + return val, false + } + + k.cdc.MustUnmarshal(b, &val) + return val, true +} + func (k Keeper) SetObserverMapper(ctx sdk.Context, om *types.ObserverMapper) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ObserverMapperKey)) om.Index = GetObserverMapperIndex(om.ObserverChain) diff --git a/x/crosschain/keeper/permission_flags.go b/x/observer/keeper/permission_flags.go similarity index 94% rename from x/crosschain/keeper/permission_flags.go rename to x/observer/keeper/permission_flags.go index ff8a814dee..a00a98d03f 100644 --- a/x/crosschain/keeper/permission_flags.go +++ b/x/observer/keeper/permission_flags.go @@ -3,7 +3,7 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/zeta-chain/zetacore/x/crosschain/types" + "github.com/zeta-chain/zetacore/x/observer/types" ) // SetPermissionFlags set permissionFlags in the store @@ -29,7 +29,7 @@ func (k Keeper) GetPermissionFlags(ctx sdk.Context) (val types.PermissionFlags, func (k Keeper) IsInboundAllowed(ctx sdk.Context) (found bool) { flags, found := k.GetPermissionFlags(ctx) if !found { - return found + return false } return flags.IsInboundEnabled } diff --git a/x/observer/module.go b/x/observer/module.go index 6b93361f35..fdce29770d 100644 --- a/x/observer/module.go +++ b/x/observer/module.go @@ -172,7 +172,9 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw func (AppModule) ConsensusVersion() uint64 { return 1 } // BeginBlock executes all ABCI BeginBlock logic respective to the capability module. -func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} +func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { + BeginBlocker(ctx, am.keeper) +} // EndBlock executes all ABCI EndBlock logic respective to the capability module. It // returns no validator updates. diff --git a/x/observer/types/codec.go b/x/observer/types/codec.go index cfd45fd0ab..81572dfc9d 100644 --- a/x/observer/types/codec.go +++ b/x/observer/types/codec.go @@ -8,22 +8,22 @@ import ( ) func RegisterCodec(cdc *codec.LegacyAmino) { - //cdc.RegisterConcrete(&MsgSetSupportedChains{}, "observer/SetSupportedChains", nil) - //cdc.RegisterConcrete(&MsgAddObserver{}, "observer/AddObserver", nil) cdc.RegisterConcrete(&MsgUpdateCoreParams{}, "observer/UpdateClientParams", nil) + cdc.RegisterConcrete(&MsgUpdatePermissionFlags{}, "crosschain/UpdatePermissionFlags", nil) + cdc.RegisterConcrete(&MsgUpdateKeygen{}, "crosschain/UpdateKeygen", nil) // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - //registry.RegisterImplementations((*sdk.Msg)(nil), - // &MsgSetSupportedChains{}, - //) - //registry.RegisterImplementations((*sdk.Msg)(nil), - // &MsgAddObserver{}, - //) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateCoreParams{}, ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgUpdatePermissionFlags{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgUpdateKeygen{}, + ) // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/observer/types/errors.go b/x/observer/types/errors.go index 9a868afa1f..56aca3ecb5 100644 --- a/x/observer/types/errors.go +++ b/x/observer/types/errors.go @@ -3,22 +3,25 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + errorsmod "cosmossdk.io/errors" ) var ( - ErrUnableToAddVote = sdkerrors.Register(ModuleName, 1100, "Unable to add vote ") - ErrParamsThreshold = sdkerrors.Register(ModuleName, 1101, "Threshold cannot be more than 1") - ErrSupportedChains = sdkerrors.Register(ModuleName, 1102, "Err chain not supported") - ErrInvalidStatus = sdkerrors.Register(ModuleName, 1103, "Invalid Voting Status") + ErrUnableToAddVote = errorsmod.Register(ModuleName, 1100, "Unable to add vote ") + ErrParamsThreshold = errorsmod.Register(ModuleName, 1101, "Threshold cannot be more than 1") + ErrSupportedChains = errorsmod.Register(ModuleName, 1102, "Err chain not supported") + ErrInvalidStatus = errorsmod.Register(ModuleName, 1103, "Invalid Voting Status") - ErrObserverNotPresent = sdkerrors.Register(ModuleName, 1105, "Observer for type and observation does not exist") - ErrNotValidator = sdkerrors.Register(ModuleName, 1106, "User needs to be a validator before applying to become an observer") - ErrValidatorStatus = sdkerrors.Register(ModuleName, 1107, "Corresponding validator needs to be bonded and not jailed") - ErrInvalidAddress = sdkerrors.Register(ModuleName, 1108, "Invalid Address") - ErrSelfDelegation = sdkerrors.Register(ModuleName, 1109, "Self Delegation for operator not found") - ErrCheckObserverDelegation = sdkerrors.Register(ModuleName, 1110, "Observer delegation not sufficient") - ErrNotAuthorizedPolicy = sdkerrors.Register(ModuleName, 1111, "Msg Sender is not the authorized policy") - ErrCoreParamsNotSet = sdkerrors.Register(ModuleName, 1112, "Core params has not been set") - ErrNotAuthorized = sdkerrors.Register(ModuleName, 1113, "Err not authorized") + ErrObserverNotPresent = errorsmod.Register(ModuleName, 1105, "Observer for type and observation does not exist") + ErrNotValidator = errorsmod.Register(ModuleName, 1106, "User needs to be a validator before applying to become an observer") + ErrValidatorStatus = errorsmod.Register(ModuleName, 1107, "Corresponding validator needs to be bonded and not jailerd") + ErrInvalidAddress = errorsmod.Register(ModuleName, 1108, "Invalid Address") + ErrSelfDelegation = errorsmod.Register(ModuleName, 1109, "Self Delegation for operator not found") + ErrCheckObserverDelegation = errorsmod.Register(ModuleName, 1110, "Observer delegation not sufficient") + ErrNotAuthorizedPolicy = errorsmod.Register(ModuleName, 1111, "Msg Sender is not the authorized policy") + ErrCoreParamsNotSet = errorsmod.Register(ModuleName, 1112, "Core params has not been set") + ErrKeygenNotFound = errorsmod.Register(ModuleName, 1113, "Err Keygen not found, Keygen block can only be updated,New keygen cannot be set") + ErrKeygenBlockTooLow = errorsmod.Register(ModuleName, 1114, "Please set a block number at-least 10 blocks higher than the current block number") + ErrKeygenCompleted = errorsmod.Register(ModuleName, 1115, "Keygen already completed") + ErrNotAuthorized = errorsmod.Register(ModuleName, 1116, "Err not authorized") ) diff --git a/x/observer/types/events.pb.go b/x/observer/types/events.pb.go index 2838c1e488..3001c49774 100644 --- a/x/observer/types/events.pb.go +++ b/x/observer/types/events.pb.go @@ -99,32 +99,97 @@ func (m *EventBallotCreated) GetBallotType() string { return "" } +type EventKeygenBlockUpdated struct { + MsgTypeUrl string `protobuf:"bytes,1,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` + KeygenBlock string `protobuf:"bytes,2,opt,name=keygen_block,json=keygenBlock,proto3" json:"keygen_block,omitempty"` + KeygenPubkeys string `protobuf:"bytes,3,opt,name=keygen_pubkeys,json=keygenPubkeys,proto3" json:"keygen_pubkeys,omitempty"` +} + +func (m *EventKeygenBlockUpdated) Reset() { *m = EventKeygenBlockUpdated{} } +func (m *EventKeygenBlockUpdated) String() string { return proto.CompactTextString(m) } +func (*EventKeygenBlockUpdated) ProtoMessage() {} +func (*EventKeygenBlockUpdated) Descriptor() ([]byte, []int) { + return fileDescriptor_1f1ca57368474456, []int{1} +} +func (m *EventKeygenBlockUpdated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventKeygenBlockUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventKeygenBlockUpdated.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 *EventKeygenBlockUpdated) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventKeygenBlockUpdated.Merge(m, src) +} +func (m *EventKeygenBlockUpdated) XXX_Size() int { + return m.Size() +} +func (m *EventKeygenBlockUpdated) XXX_DiscardUnknown() { + xxx_messageInfo_EventKeygenBlockUpdated.DiscardUnknown(m) +} + +var xxx_messageInfo_EventKeygenBlockUpdated proto.InternalMessageInfo + +func (m *EventKeygenBlockUpdated) GetMsgTypeUrl() string { + if m != nil { + return m.MsgTypeUrl + } + return "" +} + +func (m *EventKeygenBlockUpdated) GetKeygenBlock() string { + if m != nil { + return m.KeygenBlock + } + return "" +} + +func (m *EventKeygenBlockUpdated) GetKeygenPubkeys() string { + if m != nil { + return m.KeygenPubkeys + } + return "" +} + func init() { proto.RegisterType((*EventBallotCreated)(nil), "zetachain.zetacore.observer.EventBallotCreated") + proto.RegisterType((*EventKeygenBlockUpdated)(nil), "zetachain.zetacore.observer.EventKeygenBlockUpdated") } func init() { proto.RegisterFile("observer/events.proto", fileDescriptor_1f1ca57368474456) } var fileDescriptor_1f1ca57368474456 = []byte{ - // 288 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x50, 0xc1, 0x4a, 0xf4, 0x30, - 0x18, 0x6c, 0xf8, 0x7f, 0x17, 0x8c, 0x82, 0x6b, 0x50, 0x2c, 0x2b, 0xc4, 0xc5, 0x93, 0x22, 0x36, - 0x07, 0xdf, 0x60, 0x17, 0xc1, 0xbd, 0x8a, 0x5e, 0xbc, 0x94, 0x74, 0xf7, 0xb3, 0x09, 0xb4, 0x4d, - 0x49, 0xb2, 0x8b, 0xeb, 0x53, 0xf8, 0x58, 0x1e, 0xf7, 0xe8, 0xc1, 0x83, 0xb4, 0x2f, 0x22, 0x49, - 0x6c, 0xe9, 0x6d, 0x98, 0x99, 0xcc, 0x37, 0x19, 0x7c, 0xaa, 0x32, 0x03, 0x7a, 0x03, 0x9a, 0xc1, - 0x06, 0x2a, 0x6b, 0x92, 0x5a, 0x2b, 0xab, 0xc8, 0xf9, 0x3b, 0x58, 0xbe, 0x14, 0x5c, 0x56, 0x89, - 0x47, 0x4a, 0x43, 0xd2, 0x39, 0x27, 0x27, 0xb9, 0xca, 0x95, 0xf7, 0x31, 0x87, 0xc2, 0x93, 0xc9, - 0x59, 0x9f, 0xd4, 0x81, 0x20, 0x5c, 0x7e, 0x23, 0x4c, 0xee, 0x5d, 0xf8, 0x8c, 0x17, 0x85, 0xb2, - 0x73, 0x0d, 0xdc, 0xc2, 0x8a, 0x4c, 0xf1, 0x61, 0x69, 0xf2, 0xd4, 0x6e, 0x6b, 0x48, 0xd7, 0xba, - 0x88, 0xd1, 0x14, 0x5d, 0xed, 0x3f, 0xe2, 0xd2, 0xe4, 0x4f, 0xdb, 0x1a, 0x9e, 0x75, 0x41, 0x6e, - 0xf0, 0x71, 0xe6, 0x9f, 0xa4, 0x72, 0x05, 0x95, 0x95, 0xaf, 0x12, 0x74, 0xfc, 0xcf, 0xdb, 0xc6, - 0x41, 0x58, 0xf4, 0x3c, 0xb9, 0xc6, 0xe3, 0x70, 0x97, 0x5b, 0xa9, 0xaa, 0x54, 0x70, 0x23, 0xe2, - 0xff, 0xde, 0x7b, 0x34, 0xe0, 0x1f, 0xb8, 0x11, 0x2e, 0x77, 0x68, 0xf5, 0xdf, 0x8c, 0xf7, 0x42, - 0xee, 0x40, 0x98, 0x3b, 0x9e, 0x5c, 0xe0, 0x83, 0xbf, 0x12, 0xae, 0x69, 0x3c, 0x0a, 0x2d, 0x03, - 0xe5, 0x8a, 0xce, 0x16, 0x9f, 0x0d, 0x45, 0xbb, 0x86, 0xa2, 0x9f, 0x86, 0xa2, 0x8f, 0x96, 0x46, - 0xbb, 0x96, 0x46, 0x5f, 0x2d, 0x8d, 0x5e, 0x58, 0x2e, 0xad, 0x58, 0x67, 0xc9, 0x52, 0x95, 0xcc, - 0xad, 0x78, 0xeb, 0x2f, 0xb1, 0x6e, 0x50, 0xf6, 0xd6, 0x2f, 0xc5, 0x5c, 0xb6, 0xc9, 0x46, 0x7e, - 0xb0, 0xbb, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0xe0, 0x75, 0x9f, 0x95, 0x01, 0x00, 0x00, + // 347 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x41, 0x4b, 0x33, 0x31, + 0x14, 0x6c, 0xbe, 0x4f, 0x0b, 0xa6, 0x55, 0x6b, 0x50, 0xba, 0x54, 0x58, 0x6b, 0x41, 0x50, 0xc4, + 0xcd, 0xc1, 0x7f, 0xd0, 0x22, 0x58, 0xbc, 0x88, 0xd8, 0x8b, 0x97, 0x25, 0xdb, 0x3e, 0x77, 0xc3, + 0x6e, 0x37, 0x4b, 0x92, 0x16, 0xd7, 0xbb, 0x77, 0x7f, 0x96, 0xc7, 0x1e, 0x3d, 0x78, 0x90, 0xf6, + 0x8f, 0x48, 0x92, 0xb6, 0xf6, 0xe8, 0xed, 0x31, 0x6f, 0xde, 0x64, 0x26, 0x83, 0x8f, 0x44, 0xa4, + 0x40, 0x4e, 0x41, 0x52, 0x98, 0x42, 0xae, 0x55, 0x50, 0x48, 0xa1, 0x05, 0x39, 0x7e, 0x05, 0xcd, + 0x86, 0x09, 0xe3, 0x79, 0x60, 0x27, 0x21, 0x21, 0x58, 0x31, 0x5b, 0x87, 0xb1, 0x88, 0x85, 0xe5, + 0x51, 0x33, 0xb9, 0x93, 0x56, 0x73, 0xad, 0xb4, 0x1a, 0xdc, 0xa2, 0xf3, 0x85, 0x30, 0xb9, 0x31, + 0xe2, 0x5d, 0x96, 0x65, 0x42, 0xf7, 0x24, 0x30, 0x0d, 0x23, 0xd2, 0xc6, 0xf5, 0xb1, 0x8a, 0x43, + 0x5d, 0x16, 0x10, 0x4e, 0x64, 0xe6, 0xa1, 0x36, 0x3a, 0xdf, 0x79, 0xc0, 0x63, 0x15, 0x3f, 0x96, + 0x05, 0x0c, 0x64, 0x46, 0x2e, 0xf1, 0x41, 0x64, 0x4f, 0x42, 0x3e, 0x82, 0x5c, 0xf3, 0x67, 0x0e, + 0xd2, 0xfb, 0x6f, 0x69, 0x0d, 0xb7, 0xe8, 0xaf, 0x71, 0x72, 0x81, 0x1b, 0xee, 0x5d, 0xa6, 0xb9, + 0xc8, 0xc3, 0x84, 0xa9, 0xc4, 0xdb, 0xb2, 0xdc, 0xfd, 0x0d, 0xfc, 0x96, 0xa9, 0xc4, 0xe8, 0x6e, + 0x52, 0x6d, 0x4c, 0x6f, 0xdb, 0xe9, 0x6e, 0x2c, 0x7a, 0x06, 0x27, 0x27, 0xb8, 0xb6, 0x34, 0x61, + 0x9c, 0x7a, 0x55, 0xe7, 0xd2, 0x41, 0xc6, 0x68, 0xe7, 0x0d, 0xe1, 0xa6, 0x8d, 0x77, 0x07, 0x65, + 0x0c, 0x79, 0x37, 0x13, 0xc3, 0x74, 0x50, 0x8c, 0xfe, 0x98, 0xf1, 0x14, 0xd7, 0x53, 0x7b, 0x17, + 0x46, 0xe6, 0xd0, 0xfb, 0x67, 0x19, 0xb5, 0xf4, 0x57, 0x8b, 0x9c, 0xe1, 0xbd, 0x25, 0xa5, 0x98, + 0x44, 0x29, 0x94, 0x6a, 0xf9, 0x07, 0xbb, 0x0e, 0xbd, 0x77, 0x60, 0xb7, 0xff, 0x31, 0xf7, 0xd1, + 0x6c, 0xee, 0xa3, 0xef, 0xb9, 0x8f, 0xde, 0x17, 0x7e, 0x65, 0xb6, 0xf0, 0x2b, 0x9f, 0x0b, 0xbf, + 0xf2, 0x44, 0x63, 0xae, 0x93, 0x49, 0x14, 0x0c, 0xc5, 0x98, 0x9a, 0x36, 0xaf, 0x6c, 0x62, 0xba, + 0x2a, 0x96, 0xbe, 0xac, 0x1b, 0xa3, 0xc6, 0xa9, 0x8a, 0xaa, 0xb6, 0xb8, 0xeb, 0x9f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x7f, 0x12, 0xcc, 0xb6, 0x1d, 0x02, 0x00, 0x00, } func (m *EventBallotCreated) Marshal() (dAtA []byte, err error) { @@ -185,6 +250,50 @@ func (m *EventBallotCreated) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *EventKeygenBlockUpdated) 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 *EventKeygenBlockUpdated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventKeygenBlockUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.KeygenPubkeys) > 0 { + i -= len(m.KeygenPubkeys) + copy(dAtA[i:], m.KeygenPubkeys) + i = encodeVarintEvents(dAtA, i, uint64(len(m.KeygenPubkeys))) + i-- + dAtA[i] = 0x1a + } + if len(m.KeygenBlock) > 0 { + i -= len(m.KeygenBlock) + copy(dAtA[i:], m.KeygenBlock) + i = encodeVarintEvents(dAtA, i, uint64(len(m.KeygenBlock))) + i-- + dAtA[i] = 0x12 + } + if len(m.MsgTypeUrl) > 0 { + i -= len(m.MsgTypeUrl) + copy(dAtA[i:], m.MsgTypeUrl) + i = encodeVarintEvents(dAtA, i, uint64(len(m.MsgTypeUrl))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { offset -= sovEvents(v) base := offset @@ -225,6 +334,27 @@ func (m *EventBallotCreated) Size() (n int) { return n } +func (m *EventKeygenBlockUpdated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MsgTypeUrl) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.KeygenBlock) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.KeygenPubkeys) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + func sovEvents(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -441,6 +571,152 @@ func (m *EventBallotCreated) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventKeygenBlockUpdated) 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 ErrIntOverflowEvents + } + 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: EventKeygenBlockUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventKeygenBlockUpdated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + 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 ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MsgTypeUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeygenBlock", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + 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 ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeygenBlock = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeygenPubkeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + 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 ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeygenPubkeys = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEvents(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/observer/types/genesis.go b/x/observer/types/genesis.go index cfc9031e15..19756be132 100644 --- a/x/observer/types/genesis.go +++ b/x/observer/types/genesis.go @@ -10,9 +10,12 @@ import ( func DefaultGenesis() *GenesisState { params := DefaultParams() return &GenesisState{ - Params: ¶ms, - Ballots: nil, - Observers: nil, + Params: ¶ms, + Ballots: nil, + Observers: nil, + NodeAccountList: []*NodeAccount{}, + PermissionFlags: &PermissionFlags{IsInboundEnabled: true}, + Keygen: nil, } } @@ -25,6 +28,15 @@ func (gs GenesisState) Validate() error { return err } } + // Check for duplicated index in nodeAccount + nodeAccountIndexMap := make(map[string]bool) + + for _, elem := range gs.NodeAccountList { + if _, ok := nodeAccountIndexMap[elem.GetOperator()]; ok { + return fmt.Errorf("duplicated index for nodeAccount") + } + nodeAccountIndexMap[elem.GetOperator()] = true + } return nil } diff --git a/x/observer/types/genesis.pb.go b/x/observer/types/genesis.pb.go index c919bb0389..efc88ba163 100644 --- a/x/observer/types/genesis.pb.go +++ b/x/observer/types/genesis.pb.go @@ -24,9 +24,12 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GenesisState struct { - Ballots []*Ballot `protobuf:"bytes,1,rep,name=ballots,proto3" json:"ballots,omitempty"` - Observers []*ObserverMapper `protobuf:"bytes,2,rep,name=observers,proto3" json:"observers,omitempty"` - Params *Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` + Ballots []*Ballot `protobuf:"bytes,1,rep,name=ballots,proto3" json:"ballots,omitempty"` + Observers []*ObserverMapper `protobuf:"bytes,2,rep,name=observers,proto3" json:"observers,omitempty"` + NodeAccountList []*NodeAccount `protobuf:"bytes,3,rep,name=nodeAccountList,proto3" json:"nodeAccountList,omitempty"` + PermissionFlags *PermissionFlags `protobuf:"bytes,4,opt,name=permissionFlags,proto3" json:"permissionFlags,omitempty"` + Params *Params `protobuf:"bytes,5,opt,name=params,proto3" json:"params,omitempty"` + Keygen *Keygen `protobuf:"bytes,6,opt,name=keygen,proto3" json:"keygen,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -76,6 +79,20 @@ func (m *GenesisState) GetObservers() []*ObserverMapper { return nil } +func (m *GenesisState) GetNodeAccountList() []*NodeAccount { + if m != nil { + return m.NodeAccountList + } + return nil +} + +func (m *GenesisState) GetPermissionFlags() *PermissionFlags { + if m != nil { + return m.PermissionFlags + } + return nil +} + func (m *GenesisState) GetParams() *Params { if m != nil { return m.Params @@ -83,6 +100,13 @@ func (m *GenesisState) GetParams() *Params { return nil } +func (m *GenesisState) GetKeygen() *Keygen { + if m != nil { + return m.Keygen + } + return nil +} + func init() { proto.RegisterType((*GenesisState)(nil), "zetachain.zetacore.observer.GenesisState") } @@ -90,23 +114,30 @@ func init() { func init() { proto.RegisterFile("observer/genesis.proto", fileDescriptor_15ea8c9d44da7399) } var fileDescriptor_15ea8c9d44da7399 = []byte{ - // 255 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcb, 0x4f, 0x2a, 0x4e, - 0x2d, 0x2a, 0x4b, 0x2d, 0xd2, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x03, 0xb3, - 0xf2, 0x8b, 0x52, 0xf5, 0x60, 0x4a, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xea, 0xf4, 0x41, - 0x2c, 0x88, 0x16, 0x29, 0x71, 0xb8, 0x51, 0x30, 0x06, 0x54, 0x42, 0x14, 0x2e, 0x91, 0x94, 0x98, - 0x93, 0x93, 0x5f, 0x82, 0x21, 0x5c, 0x90, 0x58, 0x94, 0x98, 0x0b, 0xb5, 0x59, 0xe9, 0x2a, 0x23, - 0x17, 0x8f, 0x3b, 0xc4, 0x2d, 0xc1, 0x25, 0x89, 0x25, 0xa9, 0x42, 0xb6, 0x5c, 0xec, 0x10, 0x7d, - 0xc5, 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0xca, 0x7a, 0x78, 0x1c, 0xa7, 0xe7, 0x04, 0x56, - 0x1b, 0x04, 0xd3, 0x23, 0xe4, 0xc9, 0xc5, 0x09, 0x93, 0x2b, 0x96, 0x60, 0x02, 0x1b, 0xa0, 0x8d, - 0xd7, 0x00, 0x7f, 0x28, 0xc3, 0x37, 0xb1, 0xa0, 0x20, 0xb5, 0x28, 0x08, 0xa1, 0x5b, 0xc8, 0x9a, - 0x8b, 0x0d, 0xe2, 0x54, 0x09, 0x66, 0x05, 0x46, 0x82, 0x0e, 0x09, 0x00, 0x2b, 0x0d, 0x82, 0x6a, - 0x71, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, - 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xfd, 0xf4, 0xcc, - 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x90, 0x31, 0xba, 0x60, 0x13, 0xf5, 0x61, - 0x26, 0xea, 0x57, 0xc0, 0x03, 0x54, 0xbf, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x52, - 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x45, 0x96, 0x62, 0xbd, 0x01, 0x00, 0x00, + // 364 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcb, 0x4a, 0xc3, 0x40, + 0x14, 0x86, 0x1b, 0xab, 0x15, 0xa7, 0x42, 0x21, 0x78, 0x09, 0x2d, 0xc4, 0xa2, 0x9b, 0x82, 0x9a, + 0x81, 0xba, 0x14, 0x17, 0x76, 0xa1, 0x14, 0x6f, 0x65, 0x04, 0x17, 0x6e, 0xca, 0x24, 0x1e, 0xd3, + 0x60, 0x9b, 0x09, 0x33, 0x53, 0xb1, 0x3e, 0x85, 0x4f, 0xe4, 0xda, 0x65, 0x97, 0x2e, 0xa5, 0x7d, + 0x11, 0xc9, 0x4c, 0x2e, 0xd8, 0x42, 0x70, 0x77, 0x98, 0xf3, 0x7f, 0x5f, 0x72, 0xce, 0x0c, 0xda, + 0x61, 0xae, 0x00, 0xfe, 0x0a, 0x1c, 0xfb, 0x10, 0x82, 0x08, 0x84, 0x13, 0x71, 0x26, 0x99, 0xd9, + 0x78, 0x07, 0x49, 0xbd, 0x01, 0x0d, 0x42,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x24, 0x86, + 0xf5, 0x9d, 0x58, 0x95, 0x7f, 0xc0, 0x57, 0x2a, 0x4a, 0x12, 0xa4, 0xd3, 0xfd, 0x9a, 0xd9, 0xc6, + 0x74, 0x66, 0x1b, 0x3f, 0x33, 0xdb, 0xf8, 0x98, 0xdb, 0xa5, 0xe9, 0xdc, 0x2e, 0x7d, 0xcf, 0xed, + 0xd2, 0x23, 0xf6, 0x03, 0x39, 0x18, 0xbb, 0x8e, 0xc7, 0x46, 0x38, 0xd6, 0x1c, 0x2b, 0x23, 0x4e, + 0x8d, 0xf8, 0x2d, 0x7b, 0x8e, 0x58, 0x4e, 0x22, 0x10, 0x6e, 0x45, 0x3d, 0x89, 0x93, 0xdf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x0a, 0x4e, 0xe0, 0xbc, 0xfb, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -129,6 +160,18 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Keygen != nil { + { + size, err := m.Keygen.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } if m.Params != nil { { size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) @@ -139,7 +182,33 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a + } + if m.PermissionFlags != nil { + { + size, err := m.PermissionFlags.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.NodeAccountList) > 0 { + for iNdEx := len(m.NodeAccountList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NodeAccountList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } if len(m.Observers) > 0 { for iNdEx := len(m.Observers) - 1; iNdEx >= 0; iNdEx-- { @@ -201,10 +270,24 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.NodeAccountList) > 0 { + for _, e := range m.NodeAccountList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.PermissionFlags != nil { + l = m.PermissionFlags.Size() + n += 1 + l + sovGenesis(uint64(l)) + } if m.Params != nil { l = m.Params.Size() n += 1 + l + sovGenesis(uint64(l)) } + if m.Keygen != nil { + l = m.Keygen.Size() + n += 1 + l + sovGenesis(uint64(l)) + } return n } @@ -312,6 +395,76 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeAccountList", 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.NodeAccountList = append(m.NodeAccountList, &NodeAccount{}) + if err := m.NodeAccountList[len(m.NodeAccountList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermissionFlags", 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 + } + if m.PermissionFlags == nil { + m.PermissionFlags = &PermissionFlags{} + } + if err := m.PermissionFlags.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } @@ -347,6 +500,42 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keygen", 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 + } + if m.Keygen == nil { + m.Keygen = &Keygen{} + } + if err := m.Keygen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/crosschain/types/keygen.pb.go b/x/observer/types/keygen.pb.go similarity index 79% rename from x/crosschain/types/keygen.pb.go rename to x/observer/types/keygen.pb.go index 03d4a01c9e..e3f9df383a 100644 --- a/x/crosschain/types/keygen.pb.go +++ b/x/observer/types/keygen.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: crosschain/keygen.proto +// source: observer/keygen.proto package types @@ -48,11 +48,11 @@ func (x KeygenStatus) String() string { } func (KeygenStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b2a31a17f5bb2128, []int{0} + return fileDescriptor_4efb2de738775c96, []int{0} } type Keygen struct { - Status KeygenStatus `protobuf:"varint,2,opt,name=status,proto3,enum=zetachain.zetacore.crosschain.KeygenStatus" json:"status,omitempty"` + Status KeygenStatus `protobuf:"varint,2,opt,name=status,proto3,enum=zetachain.zetacore.observer.KeygenStatus" json:"status,omitempty"` GranteePubkeys []string `protobuf:"bytes,3,rep,name=granteePubkeys,proto3" json:"granteePubkeys,omitempty"` BlockNumber int64 `protobuf:"varint,4,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"` } @@ -61,7 +61,7 @@ func (m *Keygen) Reset() { *m = Keygen{} } func (m *Keygen) String() string { return proto.CompactTextString(m) } func (*Keygen) ProtoMessage() {} func (*Keygen) Descriptor() ([]byte, []int) { - return fileDescriptor_b2a31a17f5bb2128, []int{0} + return fileDescriptor_4efb2de738775c96, []int{0} } func (m *Keygen) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -112,33 +112,33 @@ func (m *Keygen) GetBlockNumber() int64 { } func init() { - proto.RegisterEnum("zetachain.zetacore.crosschain.KeygenStatus", KeygenStatus_name, KeygenStatus_value) - proto.RegisterType((*Keygen)(nil), "zetachain.zetacore.crosschain.Keygen") + proto.RegisterEnum("zetachain.zetacore.observer.KeygenStatus", KeygenStatus_name, KeygenStatus_value) + proto.RegisterType((*Keygen)(nil), "zetachain.zetacore.observer.Keygen") } -func init() { proto.RegisterFile("crosschain/keygen.proto", fileDescriptor_b2a31a17f5bb2128) } +func init() { proto.RegisterFile("observer/keygen.proto", fileDescriptor_4efb2de738775c96) } -var fileDescriptor_b2a31a17f5bb2128 = []byte{ - // 292 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0x2e, 0xca, 0x2f, - 0x2e, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0xcf, 0x4e,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 0x62, 0x59, 0xb1, 0x44, 0x8e, 0xd1, 0xc9, 0xfb, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, - 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, - 0x18, 0xa2, 0x0c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x41, 0xde, - 0xd4, 0x85, 0x04, 0x2d, 0xcc, 0xc7, 0xfa, 0x15, 0xfa, 0x48, 0x01, 0x5e, 0x52, 0x59, 0x90, 0x5a, - 0x9c, 0xc4, 0x06, 0x0e, 0x3b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xac, 0xad, 0x50, 0xe4, - 0x8b, 0x01, 0x00, 0x00, +var fileDescriptor_4efb2de738775c96 = []byte{ + // 293 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0x4f, 0x2a, 0x4e, + 0x2d, 0x2a, 0x4b, 0x2d, 0xd2, 0xcf, 0x4e, 0xad, 0x4c, 0x4f, 0xcd, 0xd3, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x03, 0xb3, 0xf2, + 0x8b, 0x52, 0xf5, 0x60, 0x2a, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xea, 0xf4, 0x41, 0x2c, + 0x88, 0x16, 0xa5, 0xa9, 0x8c, 0x5c, 0x6c, 0xde, 0x60, 0x33, 0x84, 0x1c, 0xb9, 0xd8, 0x8a, 0x4b, + 0x12, 0x4b, 0x4a, 0x8b, 0x25, 0x98, 0x14, 0x18, 0x35, 0xf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9, 0x2c, + 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x9b, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xd3, 0xf7, 0xb2, + 0x79, 0x83, 0x01, 0x00, 0x00, } func (m *Keygen) Marshal() (dAtA []byte, err error) { diff --git a/x/observer/types/keys.go b/x/observer/types/keys.go index 20d30e1273..8769b55977 100644 --- a/x/observer/types/keys.go +++ b/x/observer/types/keys.go @@ -22,10 +22,14 @@ func KeyPrefix(p string) []byte { } const ( - BlameKey = "Blame-" - VoterKey = "Voter-value-" - AllCoreParams = "CoreParams" - ObserverMapperKey = "Observer-value-" - ObserverParamsKey = "ObserverParams" - AdminPolicyParamsKey = "AdminParams" + BlameKey = "Blame-" + VoterKey = "Voter-value-" + AllCoreParams = "CoreParams" + ObserverMapperKey = "Observer-value-" + ObserverParamsKey = "ObserverParams" + AdminPolicyParamsKey = "AdminParams" + PermissionFlagsKey = "PermissionFlags-value-" + LastBlockObserverCountKey = "ObserverCount-value-" + NodeAccountKey = "NodeAccount-value-" + KeygenKey = "Keygen-value-" ) diff --git a/x/crosschain/types/message_update_keygen.go b/x/observer/types/message_update_keygen.go similarity index 100% rename from x/crosschain/types/message_update_keygen.go rename to x/observer/types/message_update_keygen.go diff --git a/x/crosschain/types/message_update_keygen_test.go b/x/observer/types/message_update_keygen_test.go similarity index 100% rename from x/crosschain/types/message_update_keygen_test.go rename to x/observer/types/message_update_keygen_test.go diff --git a/x/crosschain/types/messages_permission_flags.go b/x/observer/types/messages_permission_flags.go similarity index 100% rename from x/crosschain/types/messages_permission_flags.go rename to x/observer/types/messages_permission_flags.go diff --git a/x/crosschain/types/messages_permission_flags_test.go b/x/observer/types/messages_permission_flags_test.go similarity index 100% rename from x/crosschain/types/messages_permission_flags_test.go rename to x/observer/types/messages_permission_flags_test.go diff --git a/x/crosschain/types/node_account.pb.go b/x/observer/types/node_account.pb.go similarity index 79% rename from x/crosschain/types/node_account.pb.go rename to x/observer/types/node_account.pb.go index 09d1631043..d354a32481 100644 --- a/x/crosschain/types/node_account.pb.go +++ b/x/observer/types/node_account.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: crosschain/node_account.proto +// source: observer/node_account.proto package types @@ -58,21 +58,21 @@ func (x NodeStatus) String() string { } func (NodeStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ea30ee4c0fac150c, []int{0} + return fileDescriptor_6f54e38f9d1a9953, []int{0} } type NodeAccount struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` GranteeAddress string `protobuf:"bytes,2,opt,name=granteeAddress,proto3" json:"granteeAddress,omitempty"` GranteePubkey *common.PubKeySet `protobuf:"bytes,3,opt,name=granteePubkey,proto3" json:"granteePubkey,omitempty"` - NodeStatus NodeStatus `protobuf:"varint,4,opt,name=nodeStatus,proto3,enum=zetachain.zetacore.crosschain.NodeStatus" json:"nodeStatus,omitempty"` + NodeStatus NodeStatus `protobuf:"varint,4,opt,name=nodeStatus,proto3,enum=zetachain.zetacore.observer.NodeStatus" json:"nodeStatus,omitempty"` } func (m *NodeAccount) Reset() { *m = NodeAccount{} } func (m *NodeAccount) String() string { return proto.CompactTextString(m) } func (*NodeAccount) ProtoMessage() {} func (*NodeAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_ea30ee4c0fac150c, []int{0} + return fileDescriptor_6f54e38f9d1a9953, []int{0} } func (m *NodeAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,37 +130,37 @@ func (m *NodeAccount) GetNodeStatus() NodeStatus { } func init() { - proto.RegisterEnum("zetachain.zetacore.crosschain.NodeStatus", NodeStatus_name, NodeStatus_value) - proto.RegisterType((*NodeAccount)(nil), "zetachain.zetacore.crosschain.NodeAccount") + proto.RegisterEnum("zetachain.zetacore.observer.NodeStatus", NodeStatus_name, NodeStatus_value) + proto.RegisterType((*NodeAccount)(nil), "zetachain.zetacore.observer.NodeAccount") } -func init() { proto.RegisterFile("crosschain/node_account.proto", fileDescriptor_ea30ee4c0fac150c) } +func init() { proto.RegisterFile("observer/node_account.proto", fileDescriptor_6f54e38f9d1a9953) } -var fileDescriptor_ea30ee4c0fac150c = []byte{ - // 364 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0x4d, 0x4b, 0xe3, 0x40, - 0x18, 0xce, 0xf4, 0x6b, 0xdb, 0xc9, 0x6e, 0x37, 0x3b, 0xbb, 0x87, 0x10, 0x68, 0x28, 0x7b, 0x90, - 0x2a, 0x98, 0x60, 0x3d, 0x78, 0xae, 0x78, 0x91, 0x42, 0x29, 0x29, 0x22, 0x78, 0x91, 0x49, 0xe6, - 0x25, 0x0d, 0x6d, 0x67, 0x4a, 0x66, 0xa2, 0xc6, 0x5f, 0xe1, 0x8f, 0xf0, 0xe0, 0x4f, 0xf1, 0xd8, - 0x8b, 0xe0, 0x51, 0xda, 0x3f, 0x22, 0x49, 0x6a, 0x5b, 0x3d, 0x78, 0x9a, 0x77, 0x9e, 0x8f, 0x99, - 0xf7, 0xe1, 0xc1, 0xad, 0x20, 0x16, 0x52, 0x06, 0x63, 0x1a, 0x71, 0x97, 0x0b, 0x06, 0xd7, 0x34, - 0x08, 0x44, 0xc2, 0x95, 0x33, 0x8f, 0x85, 0x12, 0xa4, 0x75, 0x0f, 0x8a, 0xe6, 0xac, 0x93, 0x4f, - 0x22, 0x06, 0x67, 0xeb, 0xb0, 0xfe, 0x85, 0x22, 0x14, 0xb9, 0xd2, 0xcd, 0xa6, 0xc2, 0x64, 0xfd, - 0x0d, 0xc4, 0x6c, 0x26, 0xb8, 0x5b, 0x1c, 0x05, 0xf8, 0xff, 0x05, 0x61, 0x7d, 0x20, 0x18, 0xf4, - 0x8a, 0xf7, 0x89, 0x85, 0xeb, 0x62, 0x0e, 0x31, 0x55, 0x22, 0x36, 0x51, 0x1b, 0x75, 0x1a, 0xde,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xaf, 0x4a, 0xe7, 0x20, 0xfd, 0x5a, 0xde, 0xc7, 0xf1, 0x7b, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x6f, 0x20, 0xfd, 0xb6, 0xfa, 0x01, 0x00, 0x00, +var fileDescriptor_6f54e38f9d1a9953 = []byte{ + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcd, 0x8a, 0xdb, 0x30, + 0x14, 0x85, 0xad, 0xfc, 0x35, 0x91, 0xdb, 0xd4, 0x55, 0xbb, 0x30, 0x0e, 0x98, 0xd0, 0x45, 0x1b, + 0x0a, 0xb5, 0x20, 0x5d, 0x74, 0x9d, 0x52, 0x28, 0xa5, 0x10, 0x82, 0x43, 0x29, 0x74, 0x33, 0x48, + 0xd6, 0xc5, 0x31, 0x49, 0xa4, 0x20, 0xcb, 0x99, 0xf1, 0x3c, 0xc5, 0x3c, 0xc4, 0x2c, 0xe6, 0x51, + 0x66, 0x19, 0x98, 0xcd, 0x2c, 0x87, 0xe4, 0x45, 0x06, 0xdb, 0x49, 0xe6, 0x67, 0x31, 0x2b, 0x5d, + 0x9d, 0xfb, 0x5d, 0xe9, 0x1c, 0x2e, 0xee, 0x29, 0x9e, 0x82, 0x5e, 0x83, 0xa6, 0x52, 0x09, 0x38, + 0x61, 0x51, 0xa4, 0x32, 0x69, 0x82, 0x95, 0x56, 0x46, 0x91, 0xde, 0x39, 0x18, 0x16, 0xcd, 0x58, + 0x22, 0x83, 0xb2, 0x52, 0x1a, 0x82, 0x03, 0xef, 0x7d, 0x88, 0x55, 0xac, 0x4a, 0x8e, 0x16, 0x55, + 0x35, 0xe2, 0xbd, 0x8f, 0xd4, 0x72, 0xa9, 0x24, 0xad, 0x8e, 0x4a, 0xfc, 0x78, 0x83, 0xb0, 0x3d, + 0x56, 0x02, 0x46, 0xd5, 0xeb, 0xc4, 0xc3, 0x6d, 0xb5, 0x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x7f, + 0x2d, 0xdd, 0xd3, 0x83, 0x7b, 0x7a, 0x46, 0x8f, 0x9b, 0x35, 0xf9, 0x0a, 0x52, 0xde, 0x2a, 0x77, + 0xf1, 0xed, 0x3e, 0x00, 0x00, 0xff, 0xff, 0x46, 0x85, 0x7d, 0x91, 0xf2, 0x01, 0x00, 0x00, } func (m *NodeAccount) Marshal() (dAtA []byte, err error) { diff --git a/x/observer/types/observer.pb.go b/x/observer/types/observer.pb.go index 5fd9ecada2..068b864487 100644 --- a/x/observer/types/observer.pb.go +++ b/x/observer/types/observer.pb.go @@ -118,35 +118,91 @@ func (m *ObserverMapper) GetObserverList() []string { return nil } +type LastObserverCount struct { + Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + LastChangeHeight int64 `protobuf:"varint,2,opt,name=last_change_height,json=lastChangeHeight,proto3" json:"last_change_height,omitempty"` +} + +func (m *LastObserverCount) Reset() { *m = LastObserverCount{} } +func (m *LastObserverCount) String() string { return proto.CompactTextString(m) } +func (*LastObserverCount) ProtoMessage() {} +func (*LastObserverCount) Descriptor() ([]byte, []int) { + return fileDescriptor_3004233a4a5969ce, []int{1} +} +func (m *LastObserverCount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LastObserverCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LastObserverCount.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 *LastObserverCount) XXX_Merge(src proto.Message) { + xxx_messageInfo_LastObserverCount.Merge(m, src) +} +func (m *LastObserverCount) XXX_Size() int { + return m.Size() +} +func (m *LastObserverCount) XXX_DiscardUnknown() { + xxx_messageInfo_LastObserverCount.DiscardUnknown(m) +} + +var xxx_messageInfo_LastObserverCount proto.InternalMessageInfo + +func (m *LastObserverCount) GetCount() uint64 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *LastObserverCount) GetLastChangeHeight() int64 { + if m != nil { + return m.LastChangeHeight + } + return 0 +} + func init() { proto.RegisterEnum("zetachain.zetacore.observer.ObservationType", ObservationType_name, ObservationType_value) proto.RegisterType((*ObserverMapper)(nil), "zetachain.zetacore.observer.ObserverMapper") + proto.RegisterType((*LastObserverCount)(nil), "zetachain.zetacore.observer.LastObserverCount") } func init() { proto.RegisterFile("observer/observer.proto", fileDescriptor_3004233a4a5969ce) } var fileDescriptor_3004233a4a5969ce = []byte{ - // 319 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x51, 0xc1, 0x4a, 0x03, 0x31, - 0x10, 0xdd, 0xb4, 0x55, 0x68, 0xb4, 0x75, 0x8d, 0x15, 0x4b, 0x85, 0x50, 0xf4, 0x52, 0x04, 0x37, - 0xa0, 0x7e, 0x41, 0x45, 0xa4, 0xa8, 0x14, 0xda, 0x9e, 0xbc, 0x94, 0x6d, 0x1b, 0xb6, 0x81, 0x36, - 0x09, 0xbb, 0x59, 0xd9, 0xf5, 0xe6, 0x1f, 0xf8, 0x11, 0x1e, 0xfc, 0x14, 0x8f, 0x3d, 0x7a, 0x94, - 0xdd, 0x1f, 0x91, 0x24, 0x4d, 0x4f, 0x79, 0xef, 0xcd, 0x4c, 0x66, 0xe6, 0x0d, 0x3c, 0x13, 0xb3, - 0x84, 0xc6, 0x6f, 0x34, 0x26, 0x0e, 0x04, 0x32, 0x16, 0x4a, 0xa0, 0xf3, 0x77, 0xaa, 0xc2, 0xf9, - 0x32, 0x64, 0x3c, 0x30, 0x48, 0xc4, 0x34, 0x70, 0x29, 0x9d, 0x93, 0xb9, 0x58, 0xaf, 0x05, 0x27, - 0xf6, 0xb1, 0x15, 0x9d, 0x56, 0x24, 0x22, 0x61, 0x20, 0xd1, 0xc8, 0xaa, 0x17, 0x1f, 0x00, 0x36, - 0x87, 0xdb, 0xba, 0x97, 0x50,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c, 0xa6, 0x01, 0x00, 0x00, + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x51, 0xcf, 0x6a, 0x22, 0x31, + 0x1c, 0x9e, 0xe8, 0xec, 0x82, 0xd9, 0xd5, 0x1d, 0xb3, 0x96, 0x8a, 0x85, 0x20, 0xf6, 0x22, 0xa5, + 0x9d, 0x40, 0xdb, 0x27, 0x50, 0x4a, 0x2b, 0xb5, 0x08, 0xa3, 0x50, 0xe8, 0x45, 0x46, 0x0d, 0x33, + 0x01, 0x4d, 0x86, 0x99, 0x4c, 0x71, 0x7a, 0xeb, 0x1b, 0xf4, 0x21, 0x7a, 0xe8, 0xa3, 0xf4, 0xe8, + 0xb1, 0xc7, 0xa2, 0x2f, 0x52, 0x92, 0x18, 0x4f, 0xf9, 0xfe, 0x24, 0xf9, 0x7d, 0xfc, 0x3e, 0x78, + 0x2c, 0x66, 0x19, 0x4d, 0x9f, 0x69, 0x4a, 0x2c, 0xf0, 0x93, 0x54, 0x48, 0x81, 0x4e, 0x5e, 0xa8, + 0x0c, 0xe7, 0x71, 0xc8, 0xb8, 0xaf, 0x91, 0x48, 0xa9, 0x6f, 0xaf, 0xb4, 0xfe, 0xcf, 0xc5, 0x6a, + 0x25, 0x38, 0x31, 0x87, 0x79, 0xd1, 0x6a, 0x44, 0x22, 0x12, 0x1a, 0x12, 0x85, 0x8c, 0xda, 0x79, + 0x05, 0xb0, 0x36, 0xda, 0xbf, 0x7b, 0x08, 0x93, 0x84, 0xa6, 0xa8, 0x01, 0x7f, 0x31, 0xbe, 0xa0, + 0xeb, 0x26, 0x68, 0x83, 0x6e, 0x25, 0x30, 0x04, 0x5d, 0xc3, 0x9a, 0xfd, 0x7f, 0xaa, 0xe7, 0x36, + 0x4b, 0x6d, 0xd0, 0xfd, 0x73, 0x59, 0xf5, 0xf7, 0x53, 0xfa, 0x4a, 0x0c, 0xaa, 0xf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xff, 0xff, 0xc8, 0xad, 0xb9, 0x91, 0xff, 0x01, 0x00, 0x00, } func (m *ObserverMapper) Marshal() (dAtA []byte, err error) { @@ -200,6 +256,39 @@ func (m *ObserverMapper) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *LastObserverCount) 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 *LastObserverCount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LastObserverCount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastChangeHeight != 0 { + i = encodeVarintObserver(dAtA, i, uint64(m.LastChangeHeight)) + i-- + dAtA[i] = 0x10 + } + if m.Count != 0 { + i = encodeVarintObserver(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintObserver(dAtA []byte, offset int, v uint64) int { offset -= sovObserver(v) base := offset @@ -234,6 +323,21 @@ func (m *ObserverMapper) Size() (n int) { return n } +func (m *LastObserverCount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Count != 0 { + n += 1 + sovObserver(uint64(m.Count)) + } + if m.LastChangeHeight != 0 { + n += 1 + sovObserver(uint64(m.LastChangeHeight)) + } + return n +} + func sovObserver(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -390,6 +494,94 @@ func (m *ObserverMapper) Unmarshal(dAtA []byte) error { } return nil } +func (m *LastObserverCount) 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 ErrIntOverflowObserver + } + 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: LastObserverCount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LastObserverCount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowObserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastChangeHeight", wireType) + } + m.LastChangeHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowObserver + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastChangeHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipObserver(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthObserver + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipObserver(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/crosschain/types/permission_flags.pb.go b/x/observer/types/permission_flags.pb.go similarity index 82% rename from x/crosschain/types/permission_flags.pb.go rename to x/observer/types/permission_flags.pb.go index 35ecd422f1..e5a1f638b6 100644 --- a/x/crosschain/types/permission_flags.pb.go +++ b/x/observer/types/permission_flags.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: crosschain/permission_flags.proto +// source: observer/permission_flags.proto package types @@ -30,7 +30,7 @@ func (m *PermissionFlags) Reset() { *m = PermissionFlags{} } func (m *PermissionFlags) String() string { return proto.CompactTextString(m) } func (*PermissionFlags) ProtoMessage() {} func (*PermissionFlags) Descriptor() ([]byte, []int) { - return fileDescriptor_f08e7d9d5cadfd2f, []int{0} + return fileDescriptor_8446525bc61c77b9, []int{0} } func (m *PermissionFlags) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -67,25 +67,25 @@ func (m *PermissionFlags) GetIsInboundEnabled() bool { } func init() { - proto.RegisterType((*PermissionFlags)(nil), "zetachain.zetacore.crosschain.PermissionFlags") + proto.RegisterType((*PermissionFlags)(nil), "zetachain.zetacore.observer.PermissionFlags") } -func init() { proto.RegisterFile("crosschain/permission_flags.proto", fileDescriptor_f08e7d9d5cadfd2f) } +func init() { proto.RegisterFile("observer/permission_flags.proto", fileDescriptor_8446525bc61c77b9) } -var fileDescriptor_f08e7d9d5cadfd2f = []byte{ - // 179 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0x2e, 0xca, 0x2f, - 0x2e, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x48, 0x2d, 0xca, 0xcd, 0x2c, 0x2e, 0xce, 0xcc, - 0xcf, 0x8b, 0x4f, 0xcb, 0x49, 0x4c, 0x2f, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xad, - 0x4a, 0x2d, 0x49, 0x04, 0xab, 0xd0, 0x03, 0xb3, 0xf2, 0x8b, 0x52, 0xf5, 0x10, 0xba, 0x94, 0x6c, - 0xb9, 0xf8, 0x03, 0xe0, 0x1a, 0xdd, 0x40, 0xfa, 0x84, 0xb4, 0xb8, 0x04, 0x32, 0x8b, 0x3d, 0xf3, - 0x92, 0xf2, 0x4b, 0xf3, 0x52, 0x5c, 0xf3, 0x12, 0x93, 0x72, 0x52, 0x53, 0x24, 0x18, 0x15, 0x18, - 0x35, 0x38, 0x82, 0x30, 0xc4, 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, - 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, - 0x21, 0xca, 0x30, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x64, 0xb1, - 0x2e, 0xc4, 0x95, 0x30, 0x37, 0xe8, 0x57, 0xe8, 0x23, 0xb9, 0xbd, 0xa4, 0xb2, 0x20, 0xb5, 0x38, - 0x89, 0x0d, 0xec, 0x62, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x20, 0xe3, 0x8a, 0x13, 0xd6, - 0x00, 0x00, 0x00, +var fileDescriptor_8446525bc61c77b9 = []byte{ + // 180 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4f, 0x2a, 0x4e, + 0x2d, 0x2a, 0x4b, 0x2d, 0xd2, 0x2f, 0x48, 0x2d, 0xca, 0xcd, 0x2c, 0x2e, 0xce, 0xcc, 0xcf, 0x8b, + 0x4f, 0xcb, 0x49, 0x4c, 0x2f, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, + 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x03, 0xb3, 0xf2, 0x8b, 0x52, 0xf5, 0x60, 0x7a, 0x94, + 0x6c, 0xb9, 0xf8, 0x03, 0xe0, 0xda, 0xdc, 0x40, 0xba, 0x84, 0xb4, 0xb8, 0x04, 0x32, 0x8b, 0x3d, + 0xf3, 0x92, 0xf2, 0x4b, 0xf3, 0x52, 0x5c, 0xf3, 0x12, 0x93, 0x72, 0x52, 0x53, 0x24, 0x18, 0x15, + 0x18, 0x35, 0x38, 0x82, 0x30, 0xc4, 0x9d, 0x3c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, + 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, + 0x8e, 0x21, 0x4a, 0x3f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x64, + 0xad, 0x2e, 0xd8, 0x05, 0xfa, 0x30, 0x17, 0xe8, 0x57, 0xe8, 0xc3, 0xdd, 0x5d, 0x52, 0x59, 0x90, + 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xad, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x8c, 0x42, 0xc6, + 0xd0, 0x00, 0x00, 0x00, } func (m *PermissionFlags) Marshal() (dAtA []byte, err error) { diff --git a/x/observer/types/query.pb.go b/x/observer/types/query.pb.go index 13ca524981..aaf2f7fc17 100644 --- a/x/observer/types/query.pb.go +++ b/x/observer/types/query.pb.go @@ -6,6 +6,7 @@ package types import ( context "context" fmt "fmt" + query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -692,22 +693,22 @@ func (m *QueryGetCoreParamsResponse) GetCoreParams() *CoreParamsList { return nil } -type QueryBlameByIdentifierRequest struct { - BlameIdentifier string `protobuf:"bytes,1,opt,name=blame_identifier,json=blameIdentifier,proto3" json:"blame_identifier,omitempty"` +type QueryGetNodeAccountRequest struct { + Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` } -func (m *QueryBlameByIdentifierRequest) Reset() { *m = QueryBlameByIdentifierRequest{} } -func (m *QueryBlameByIdentifierRequest) String() string { return proto.CompactTextString(m) } -func (*QueryBlameByIdentifierRequest) ProtoMessage() {} -func (*QueryBlameByIdentifierRequest) Descriptor() ([]byte, []int) { +func (m *QueryGetNodeAccountRequest) Reset() { *m = QueryGetNodeAccountRequest{} } +func (m *QueryGetNodeAccountRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetNodeAccountRequest) ProtoMessage() {} +func (*QueryGetNodeAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dcb801e455adaee4, []int{15} } -func (m *QueryBlameByIdentifierRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGetNodeAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryBlameByIdentifierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGetNodeAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryBlameByIdentifierRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGetNodeAccountRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -717,41 +718,41 @@ func (m *QueryBlameByIdentifierRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryBlameByIdentifierRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryBlameByIdentifierRequest.Merge(m, src) +func (m *QueryGetNodeAccountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetNodeAccountRequest.Merge(m, src) } -func (m *QueryBlameByIdentifierRequest) XXX_Size() int { +func (m *QueryGetNodeAccountRequest) XXX_Size() int { return m.Size() } -func (m *QueryBlameByIdentifierRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryBlameByIdentifierRequest.DiscardUnknown(m) +func (m *QueryGetNodeAccountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetNodeAccountRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryBlameByIdentifierRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGetNodeAccountRequest proto.InternalMessageInfo -func (m *QueryBlameByIdentifierRequest) GetBlameIdentifier() string { +func (m *QueryGetNodeAccountRequest) GetIndex() string { if m != nil { - return m.BlameIdentifier + return m.Index } return "" } -type QueryBlameByIdentifierResponse struct { - BlameInfo *Blame `protobuf:"bytes,1,opt,name=blameInfo,proto3" json:"blameInfo,omitempty"` +type QueryGetNodeAccountResponse struct { + NodeAccount *NodeAccount `protobuf:"bytes,1,opt,name=NodeAccount,proto3" json:"NodeAccount,omitempty"` } -func (m *QueryBlameByIdentifierResponse) Reset() { *m = QueryBlameByIdentifierResponse{} } -func (m *QueryBlameByIdentifierResponse) String() string { return proto.CompactTextString(m) } -func (*QueryBlameByIdentifierResponse) ProtoMessage() {} -func (*QueryBlameByIdentifierResponse) Descriptor() ([]byte, []int) { +func (m *QueryGetNodeAccountResponse) Reset() { *m = QueryGetNodeAccountResponse{} } +func (m *QueryGetNodeAccountResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetNodeAccountResponse) ProtoMessage() {} +func (*QueryGetNodeAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dcb801e455adaee4, []int{16} } -func (m *QueryBlameByIdentifierResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGetNodeAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryBlameByIdentifierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGetNodeAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryBlameByIdentifierResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGetNodeAccountResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -761,40 +762,41 @@ func (m *QueryBlameByIdentifierResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryBlameByIdentifierResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryBlameByIdentifierResponse.Merge(m, src) +func (m *QueryGetNodeAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetNodeAccountResponse.Merge(m, src) } -func (m *QueryBlameByIdentifierResponse) XXX_Size() int { +func (m *QueryGetNodeAccountResponse) XXX_Size() int { return m.Size() } -func (m *QueryBlameByIdentifierResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryBlameByIdentifierResponse.DiscardUnknown(m) +func (m *QueryGetNodeAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetNodeAccountResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryBlameByIdentifierResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGetNodeAccountResponse proto.InternalMessageInfo -func (m *QueryBlameByIdentifierResponse) GetBlameInfo() *Blame { +func (m *QueryGetNodeAccountResponse) GetNodeAccount() *NodeAccount { if m != nil { - return m.BlameInfo + return m.NodeAccount } return nil } -type QueryAllBlameRecordsRequest struct { +type QueryAllNodeAccountRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllBlameRecordsRequest) Reset() { *m = QueryAllBlameRecordsRequest{} } -func (m *QueryAllBlameRecordsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllBlameRecordsRequest) ProtoMessage() {} -func (*QueryAllBlameRecordsRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllNodeAccountRequest) Reset() { *m = QueryAllNodeAccountRequest{} } +func (m *QueryAllNodeAccountRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllNodeAccountRequest) ProtoMessage() {} +func (*QueryAllNodeAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dcb801e455adaee4, []int{17} } -func (m *QueryAllBlameRecordsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllNodeAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllBlameRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllNodeAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllBlameRecordsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllNodeAccountRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -804,34 +806,42 @@ func (m *QueryAllBlameRecordsRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllBlameRecordsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllBlameRecordsRequest.Merge(m, src) +func (m *QueryAllNodeAccountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllNodeAccountRequest.Merge(m, src) } -func (m *QueryAllBlameRecordsRequest) XXX_Size() int { +func (m *QueryAllNodeAccountRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllBlameRecordsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllBlameRecordsRequest.DiscardUnknown(m) +func (m *QueryAllNodeAccountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllNodeAccountRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllBlameRecordsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllNodeAccountRequest proto.InternalMessageInfo -type QueryAllBlameRecordsResponse struct { - BlameInfo []*Blame `protobuf:"bytes,1,rep,name=blameInfo,proto3" json:"blameInfo,omitempty"` +func (m *QueryAllNodeAccountRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil } -func (m *QueryAllBlameRecordsResponse) Reset() { *m = QueryAllBlameRecordsResponse{} } -func (m *QueryAllBlameRecordsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllBlameRecordsResponse) ProtoMessage() {} -func (*QueryAllBlameRecordsResponse) Descriptor() ([]byte, []int) { +type QueryAllNodeAccountResponse struct { + NodeAccount []*NodeAccount `protobuf:"bytes,1,rep,name=NodeAccount,proto3" json:"NodeAccount,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllNodeAccountResponse) Reset() { *m = QueryAllNodeAccountResponse{} } +func (m *QueryAllNodeAccountResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllNodeAccountResponse) ProtoMessage() {} +func (*QueryAllNodeAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dcb801e455adaee4, []int{18} } -func (m *QueryAllBlameRecordsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllNodeAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllBlameRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllNodeAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllBlameRecordsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllNodeAccountResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -841,982 +851,1166 @@ func (m *QueryAllBlameRecordsResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllBlameRecordsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllBlameRecordsResponse.Merge(m, src) +func (m *QueryAllNodeAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllNodeAccountResponse.Merge(m, src) } -func (m *QueryAllBlameRecordsResponse) XXX_Size() int { +func (m *QueryAllNodeAccountResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllBlameRecordsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllBlameRecordsResponse.DiscardUnknown(m) +func (m *QueryAllNodeAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllNodeAccountResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllBlameRecordsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllNodeAccountResponse proto.InternalMessageInfo -func (m *QueryAllBlameRecordsResponse) GetBlameInfo() []*Blame { +func (m *QueryAllNodeAccountResponse) GetNodeAccount() []*NodeAccount { if m != nil { - return m.BlameInfo + return m.NodeAccount } return nil } -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "zetachain.zetacore.observer.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "zetachain.zetacore.observer.QueryParamsResponse") - proto.RegisterType((*QueryBallotByIdentifierRequest)(nil), "zetachain.zetacore.observer.QueryBallotByIdentifierRequest") - proto.RegisterType((*VoterList)(nil), "zetachain.zetacore.observer.VoterList") - proto.RegisterType((*QueryBallotByIdentifierResponse)(nil), "zetachain.zetacore.observer.QueryBallotByIdentifierResponse") - proto.RegisterType((*QueryObserversByChainRequest)(nil), "zetachain.zetacore.observer.QueryObserversByChainRequest") - proto.RegisterType((*QueryObserversByChainResponse)(nil), "zetachain.zetacore.observer.QueryObserversByChainResponse") - proto.RegisterType((*QueryAllObserverMappersRequest)(nil), "zetachain.zetacore.observer.QueryAllObserverMappersRequest") - proto.RegisterType((*QueryAllObserverMappersResponse)(nil), "zetachain.zetacore.observer.QueryAllObserverMappersResponse") - proto.RegisterType((*QuerySupportedChains)(nil), "zetachain.zetacore.observer.QuerySupportedChains") - proto.RegisterType((*QuerySupportedChainsResponse)(nil), "zetachain.zetacore.observer.QuerySupportedChainsResponse") - proto.RegisterType((*QueryGetCoreParamsForChainRequest)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest") - proto.RegisterType((*QueryGetCoreParamsForChainResponse)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse") - proto.RegisterType((*QueryGetCoreParamsRequest)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsRequest") - proto.RegisterType((*QueryGetCoreParamsResponse)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsResponse") - proto.RegisterType((*QueryBlameByIdentifierRequest)(nil), "zetachain.zetacore.observer.QueryBlameByIdentifierRequest") - proto.RegisterType((*QueryBlameByIdentifierResponse)(nil), "zetachain.zetacore.observer.QueryBlameByIdentifierResponse") - proto.RegisterType((*QueryAllBlameRecordsRequest)(nil), "zetachain.zetacore.observer.QueryAllBlameRecordsRequest") - proto.RegisterType((*QueryAllBlameRecordsResponse)(nil), "zetachain.zetacore.observer.QueryAllBlameRecordsResponse") +func (m *QueryAllNodeAccountResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil } -func init() { proto.RegisterFile("observer/query.proto", fileDescriptor_dcb801e455adaee4) } - -var fileDescriptor_dcb801e455adaee4 = []byte{ - // 1086 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x8f, 0xe2, 0x62, 0xf0, 0x4b, 0x4d, 0xdc, 0x6d, 0x0a, 0xc6, 0x49, 0xdc, 0xa0, 0xd0, 0x92, - 0x34, 0xa9, 0x45, 0xcd, 0xf0, 0xa7, 0x84, 0xb4, 0xc4, 0x21, 0x94, 0xd0, 0x96, 0x82, 0xca, 0x14, - 0x86, 0x8b, 0x91, 0xed, 0x8d, 0x6b, 0xc6, 0xd6, 0xaa, 0xd2, 0x3a, 0x83, 0xe9, 0xe4, 0xc2, 0x27, - 0xe8, 0x0c, 0x9f, 0x83, 0x2b, 0x9c, 0xb8, 0x70, 0xea, 0x89, 0x09, 0xc3, 0x0c, 0xc3, 0x89, 0x61, - 0x12, 0x38, 0xf3, 0x15, 0x18, 0xbd, 0xdd, 0x95, 0x6d, 0x49, 0xb6, 0x95, 0x9c, 0xb2, 0x7a, 0xbb, - 0xbf, 0xf7, 0x7e, 0xbf, 0xf7, 0x76, 0xdf, 0x73, 0x60, 0x8e, 0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7e, 0x35, 0xfc, 0x87, 0x2e, 0x34, 0xb8, 0x02, 0x5b, 0xd9, 0x7d, - 0x7a, 0x54, 0xd4, 0x0e, 0x8f, 0x8a, 0xda, 0xdf, 0x47, 0x45, 0xed, 0xc9, 0x71, 0x71, 0xea, 0xf0, - 0xb8, 0x38, 0xf5, 0xe7, 0x71, 0x71, 0xea, 0x4b, 0xa3, 0xd9, 0xe2, 0x0f, 0xbb, 0x35, 0xff, 0x17, - 0x59, 0x6c, 0x99, 0xbf, 0xe9, 0xbb, 0xf6, 0x7f, 0xc1, 0x7b, 0xb5, 0x34, 0xfe, 0x8b, 0xf6, 0xfa, - 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x35, 0xc8, 0x33, 0x85, 0x7d, 0x0e, 0x00, 0x00, +type QueryGetPermissionFlagsRequest struct { } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +func (m *QueryGetPermissionFlagsRequest) Reset() { *m = QueryGetPermissionFlagsRequest{} } +func (m *QueryGetPermissionFlagsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetPermissionFlagsRequest) ProtoMessage() {} +func (*QueryGetPermissionFlagsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{19} +} +func (m *QueryGetPermissionFlagsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPermissionFlagsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPermissionFlagsRequest.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 *QueryGetPermissionFlagsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPermissionFlagsRequest.Merge(m, src) +} +func (m *QueryGetPermissionFlagsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPermissionFlagsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPermissionFlagsRequest.DiscardUnknown(m) +} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +var xxx_messageInfo_QueryGetPermissionFlagsRequest proto.InternalMessageInfo -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of VoterByIdentifier items. - BallotByIdentifier(ctx context.Context, in *QueryBallotByIdentifierRequest, opts ...grpc.CallOption) (*QueryBallotByIdentifierResponse, error) - // Queries a list of ObserversByChainAndType items. - ObserversByChain(ctx context.Context, in *QueryObserversByChainRequest, opts ...grpc.CallOption) (*QueryObserversByChainResponse, error) - AllObserverMappers(ctx context.Context, in *QueryAllObserverMappersRequest, opts ...grpc.CallOption) (*QueryAllObserverMappersResponse, error) - SupportedChains(ctx context.Context, in *QuerySupportedChains, opts ...grpc.CallOption) (*QuerySupportedChainsResponse, error) - // Queries a list of GetClientParamsForChain items. - GetCoreParamsForChain(ctx context.Context, in *QueryGetCoreParamsForChainRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsForChainResponse, error) - // Queries a list of GetCoreParams items. - GetCoreParams(ctx context.Context, in *QueryGetCoreParamsRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsResponse, error) - // Queries a list of VoterByIdentifier items. - BlameByIdentifier(ctx context.Context, in *QueryBlameByIdentifierRequest, opts ...grpc.CallOption) (*QueryBlameByIdentifierResponse, error) - // Queries a list of VoterByIdentifier items. - GetAllBlameRecords(ctx context.Context, in *QueryAllBlameRecordsRequest, opts ...grpc.CallOption) (*QueryAllBlameRecordsResponse, error) +type QueryGetPermissionFlagsResponse struct { + PermissionFlags PermissionFlags `protobuf:"bytes,1,opt,name=PermissionFlags,proto3" json:"PermissionFlags"` } -type queryClient struct { - cc grpc1.ClientConn +func (m *QueryGetPermissionFlagsResponse) Reset() { *m = QueryGetPermissionFlagsResponse{} } +func (m *QueryGetPermissionFlagsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetPermissionFlagsResponse) ProtoMessage() {} +func (*QueryGetPermissionFlagsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{20} } - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} +func (m *QueryGetPermissionFlagsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/Params", in, out, opts...) - if err != nil { - return nil, err +func (m *QueryGetPermissionFlagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPermissionFlagsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *queryClient) BallotByIdentifier(ctx context.Context, in *QueryBallotByIdentifierRequest, opts ...grpc.CallOption) (*QueryBallotByIdentifierResponse, error) { - out := new(QueryBallotByIdentifierResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/BallotByIdentifier", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *QueryGetPermissionFlagsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPermissionFlagsResponse.Merge(m, src) +} +func (m *QueryGetPermissionFlagsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPermissionFlagsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPermissionFlagsResponse.DiscardUnknown(m) } -func (c *queryClient) ObserversByChain(ctx context.Context, in *QueryObserversByChainRequest, opts ...grpc.CallOption) (*QueryObserversByChainResponse, error) { - out := new(QueryObserversByChainResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/ObserversByChain", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_QueryGetPermissionFlagsResponse proto.InternalMessageInfo + +func (m *QueryGetPermissionFlagsResponse) GetPermissionFlags() PermissionFlags { + if m != nil { + return m.PermissionFlags } - return out, nil + return PermissionFlags{} } -func (c *queryClient) AllObserverMappers(ctx context.Context, in *QueryAllObserverMappersRequest, opts ...grpc.CallOption) (*QueryAllObserverMappersResponse, error) { - out := new(QueryAllObserverMappersResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/AllObserverMappers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type QueryGetKeygenRequest struct { } -func (c *queryClient) SupportedChains(ctx context.Context, in *QuerySupportedChains, opts ...grpc.CallOption) (*QuerySupportedChainsResponse, error) { - out := new(QuerySupportedChainsResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/SupportedChains", in, out, opts...) - if err != nil { - return nil, err +func (m *QueryGetKeygenRequest) Reset() { *m = QueryGetKeygenRequest{} } +func (m *QueryGetKeygenRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetKeygenRequest) ProtoMessage() {} +func (*QueryGetKeygenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{21} +} +func (m *QueryGetKeygenRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetKeygenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetKeygenRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *QueryGetKeygenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetKeygenRequest.Merge(m, src) +} +func (m *QueryGetKeygenRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetKeygenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetKeygenRequest.DiscardUnknown(m) } -func (c *queryClient) GetCoreParamsForChain(ctx context.Context, in *QueryGetCoreParamsForChainRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsForChainResponse, error) { - out := new(QueryGetCoreParamsForChainResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/GetCoreParamsForChain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var xxx_messageInfo_QueryGetKeygenRequest proto.InternalMessageInfo + +type QueryGetKeygenResponse struct { + Keygen *Keygen `protobuf:"bytes,1,opt,name=Keygen,proto3" json:"Keygen,omitempty"` } -func (c *queryClient) GetCoreParams(ctx context.Context, in *QueryGetCoreParamsRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsResponse, error) { - out := new(QueryGetCoreParamsResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/GetCoreParams", in, out, opts...) - if err != nil { - return nil, err +func (m *QueryGetKeygenResponse) Reset() { *m = QueryGetKeygenResponse{} } +func (m *QueryGetKeygenResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetKeygenResponse) ProtoMessage() {} +func (*QueryGetKeygenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{22} +} +func (m *QueryGetKeygenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetKeygenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetKeygenResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *QueryGetKeygenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetKeygenResponse.Merge(m, src) +} +func (m *QueryGetKeygenResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetKeygenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetKeygenResponse.DiscardUnknown(m) } -func (c *queryClient) BlameByIdentifier(ctx context.Context, in *QueryBlameByIdentifierRequest, opts ...grpc.CallOption) (*QueryBlameByIdentifierResponse, error) { - out := new(QueryBlameByIdentifierResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/BlameByIdentifier", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_QueryGetKeygenResponse proto.InternalMessageInfo + +func (m *QueryGetKeygenResponse) GetKeygen() *Keygen { + if m != nil { + return m.Keygen } - return out, nil + return nil } -func (c *queryClient) GetAllBlameRecords(ctx context.Context, in *QueryAllBlameRecordsRequest, opts ...grpc.CallOption) (*QueryAllBlameRecordsResponse, error) { - out := new(QueryAllBlameRecordsResponse) - err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/GetAllBlameRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type QueryShowObserverCountRequest struct { } -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of VoterByIdentifier items. - BallotByIdentifier(context.Context, *QueryBallotByIdentifierRequest) (*QueryBallotByIdentifierResponse, error) - // Queries a list of ObserversByChainAndType items. - ObserversByChain(context.Context, *QueryObserversByChainRequest) (*QueryObserversByChainResponse, error) - AllObserverMappers(context.Context, *QueryAllObserverMappersRequest) (*QueryAllObserverMappersResponse, error) - SupportedChains(context.Context, *QuerySupportedChains) (*QuerySupportedChainsResponse, error) - // Queries a list of GetClientParamsForChain items. - GetCoreParamsForChain(context.Context, *QueryGetCoreParamsForChainRequest) (*QueryGetCoreParamsForChainResponse, error) - // Queries a list of GetCoreParams items. - GetCoreParams(context.Context, *QueryGetCoreParamsRequest) (*QueryGetCoreParamsResponse, error) - // Queries a list of VoterByIdentifier items. - BlameByIdentifier(context.Context, *QueryBlameByIdentifierRequest) (*QueryBlameByIdentifierResponse, error) - // Queries a list of VoterByIdentifier items. - GetAllBlameRecords(context.Context, *QueryAllBlameRecordsRequest) (*QueryAllBlameRecordsResponse, error) +func (m *QueryShowObserverCountRequest) Reset() { *m = QueryShowObserverCountRequest{} } +func (m *QueryShowObserverCountRequest) String() string { return proto.CompactTextString(m) } +func (*QueryShowObserverCountRequest) ProtoMessage() {} +func (*QueryShowObserverCountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{23} } - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { +func (m *QueryShowObserverCountRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +func (m *QueryShowObserverCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryShowObserverCountRequest.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 (*UnimplementedQueryServer) BallotByIdentifier(ctx context.Context, req *QueryBallotByIdentifierRequest) (*QueryBallotByIdentifierResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BallotByIdentifier not implemented") +func (m *QueryShowObserverCountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryShowObserverCountRequest.Merge(m, src) } -func (*UnimplementedQueryServer) ObserversByChain(ctx context.Context, req *QueryObserversByChainRequest) (*QueryObserversByChainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ObserversByChain not implemented") +func (m *QueryShowObserverCountRequest) XXX_Size() int { + return m.Size() } -func (*UnimplementedQueryServer) AllObserverMappers(ctx context.Context, req *QueryAllObserverMappersRequest) (*QueryAllObserverMappersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllObserverMappers not implemented") +func (m *QueryShowObserverCountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryShowObserverCountRequest.DiscardUnknown(m) } -func (*UnimplementedQueryServer) SupportedChains(ctx context.Context, req *QuerySupportedChains) (*QuerySupportedChainsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SupportedChains not implemented") + +var xxx_messageInfo_QueryShowObserverCountRequest proto.InternalMessageInfo + +type QueryShowObserverCountResponse struct { + LastObserverCount *LastObserverCount `protobuf:"bytes,1,opt,name=last_observer_count,json=lastObserverCount,proto3" json:"last_observer_count,omitempty"` } -func (*UnimplementedQueryServer) GetCoreParamsForChain(ctx context.Context, req *QueryGetCoreParamsForChainRequest) (*QueryGetCoreParamsForChainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCoreParamsForChain not implemented") + +func (m *QueryShowObserverCountResponse) Reset() { *m = QueryShowObserverCountResponse{} } +func (m *QueryShowObserverCountResponse) String() string { return proto.CompactTextString(m) } +func (*QueryShowObserverCountResponse) ProtoMessage() {} +func (*QueryShowObserverCountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{24} } -func (*UnimplementedQueryServer) GetCoreParams(ctx context.Context, req *QueryGetCoreParamsRequest) (*QueryGetCoreParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCoreParams not implemented") +func (m *QueryShowObserverCountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedQueryServer) BlameByIdentifier(ctx context.Context, req *QueryBlameByIdentifierRequest) (*QueryBlameByIdentifierResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BlameByIdentifier not implemented") +func (m *QueryShowObserverCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryShowObserverCountResponse.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 (*UnimplementedQueryServer) GetAllBlameRecords(ctx context.Context, req *QueryAllBlameRecordsRequest) (*QueryAllBlameRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllBlameRecords not implemented") +func (m *QueryShowObserverCountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryShowObserverCountResponse.Merge(m, src) } - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) +func (m *QueryShowObserverCountResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryShowObserverCountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryShowObserverCountResponse.DiscardUnknown(m) } -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) +var xxx_messageInfo_QueryShowObserverCountResponse proto.InternalMessageInfo + +func (m *QueryShowObserverCountResponse) GetLastObserverCount() *LastObserverCount { + if m != nil { + return m.LastObserverCount } - return interceptor(ctx, in, info, handler) + return nil } -func _Query_BallotByIdentifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBallotByIdentifierRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).BallotByIdentifier(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/BallotByIdentifier", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).BallotByIdentifier(ctx, req.(*QueryBallotByIdentifierRequest)) - } - return interceptor(ctx, in, info, handler) +type QueryBlameByIdentifierRequest struct { + BlameIdentifier string `protobuf:"bytes,1,opt,name=blame_identifier,json=blameIdentifier,proto3" json:"blame_identifier,omitempty"` } -func _Query_ObserversByChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryObserversByChainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ObserversByChain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/ObserversByChain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ObserversByChain(ctx, req.(*QueryObserversByChainRequest)) +func (m *QueryBlameByIdentifierRequest) Reset() { *m = QueryBlameByIdentifierRequest{} } +func (m *QueryBlameByIdentifierRequest) String() string { return proto.CompactTextString(m) } +func (*QueryBlameByIdentifierRequest) ProtoMessage() {} +func (*QueryBlameByIdentifierRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{25} +} +func (m *QueryBlameByIdentifierRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBlameByIdentifierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBlameByIdentifierRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *QueryBlameByIdentifierRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBlameByIdentifierRequest.Merge(m, src) +} +func (m *QueryBlameByIdentifierRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryBlameByIdentifierRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBlameByIdentifierRequest.DiscardUnknown(m) } -func _Query_AllObserverMappers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllObserverMappersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AllObserverMappers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/AllObserverMappers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AllObserverMappers(ctx, req.(*QueryAllObserverMappersRequest)) +var xxx_messageInfo_QueryBlameByIdentifierRequest proto.InternalMessageInfo + +func (m *QueryBlameByIdentifierRequest) GetBlameIdentifier() string { + if m != nil { + return m.BlameIdentifier } - return interceptor(ctx, in, info, handler) + return "" } -func _Query_SupportedChains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySupportedChains) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).SupportedChains(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/SupportedChains", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).SupportedChains(ctx, req.(*QuerySupportedChains)) - } - return interceptor(ctx, in, info, handler) +type QueryBlameByIdentifierResponse struct { + BlameInfo *Blame `protobuf:"bytes,1,opt,name=blameInfo,proto3" json:"blameInfo,omitempty"` } -func _Query_GetCoreParamsForChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetCoreParamsForChainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetCoreParamsForChain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/GetCoreParamsForChain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetCoreParamsForChain(ctx, req.(*QueryGetCoreParamsForChainRequest)) +func (m *QueryBlameByIdentifierResponse) Reset() { *m = QueryBlameByIdentifierResponse{} } +func (m *QueryBlameByIdentifierResponse) String() string { return proto.CompactTextString(m) } +func (*QueryBlameByIdentifierResponse) ProtoMessage() {} +func (*QueryBlameByIdentifierResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{26} +} +func (m *QueryBlameByIdentifierResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBlameByIdentifierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBlameByIdentifierResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *QueryBlameByIdentifierResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBlameByIdentifierResponse.Merge(m, src) +} +func (m *QueryBlameByIdentifierResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryBlameByIdentifierResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBlameByIdentifierResponse.DiscardUnknown(m) } -func _Query_GetCoreParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetCoreParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetCoreParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/GetCoreParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetCoreParams(ctx, req.(*QueryGetCoreParamsRequest)) +var xxx_messageInfo_QueryBlameByIdentifierResponse proto.InternalMessageInfo + +func (m *QueryBlameByIdentifierResponse) GetBlameInfo() *Blame { + if m != nil { + return m.BlameInfo } - return interceptor(ctx, in, info, handler) + return nil } -func _Query_BlameByIdentifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBlameByIdentifierRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).BlameByIdentifier(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/BlameByIdentifier", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).BlameByIdentifier(ctx, req.(*QueryBlameByIdentifierRequest)) - } - return interceptor(ctx, in, info, handler) +type QueryAllBlameRecordsRequest struct { } -func _Query_GetAllBlameRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllBlameRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetAllBlameRecords(ctx, in) +func (m *QueryAllBlameRecordsRequest) Reset() { *m = QueryAllBlameRecordsRequest{} } +func (m *QueryAllBlameRecordsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllBlameRecordsRequest) ProtoMessage() {} +func (*QueryAllBlameRecordsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{27} +} +func (m *QueryAllBlameRecordsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllBlameRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllBlameRecordsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/zetachain.zetacore.observer.Query/GetAllBlameRecords", +} +func (m *QueryAllBlameRecordsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllBlameRecordsRequest.Merge(m, src) +} +func (m *QueryAllBlameRecordsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllBlameRecordsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllBlameRecordsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllBlameRecordsRequest proto.InternalMessageInfo + +type QueryAllBlameRecordsResponse struct { + BlameInfo []*Blame `protobuf:"bytes,1,rep,name=blameInfo,proto3" json:"blameInfo,omitempty"` +} + +func (m *QueryAllBlameRecordsResponse) Reset() { *m = QueryAllBlameRecordsResponse{} } +func (m *QueryAllBlameRecordsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllBlameRecordsResponse) ProtoMessage() {} +func (*QueryAllBlameRecordsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dcb801e455adaee4, []int{28} +} +func (m *QueryAllBlameRecordsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllBlameRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllBlameRecordsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetAllBlameRecords(ctx, req.(*QueryAllBlameRecordsRequest)) +} +func (m *QueryAllBlameRecordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllBlameRecordsResponse.Merge(m, src) +} +func (m *QueryAllBlameRecordsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllBlameRecordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllBlameRecordsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllBlameRecordsResponse proto.InternalMessageInfo + +func (m *QueryAllBlameRecordsResponse) GetBlameInfo() []*Blame { + if m != nil { + return m.BlameInfo } - return interceptor(ctx, in, info, handler) + return nil } -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "zetachain.zetacore.observer.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "BallotByIdentifier", - Handler: _Query_BallotByIdentifier_Handler, - }, - { - MethodName: "ObserversByChain", - Handler: _Query_ObserversByChain_Handler, - }, - { - MethodName: "AllObserverMappers", - Handler: _Query_AllObserverMappers_Handler, - }, - { - MethodName: "SupportedChains", - Handler: _Query_SupportedChains_Handler, - }, - { - MethodName: "GetCoreParamsForChain", - Handler: _Query_GetCoreParamsForChain_Handler, - }, - { - MethodName: "GetCoreParams", - Handler: _Query_GetCoreParams_Handler, - }, - { - MethodName: "BlameByIdentifier", - Handler: _Query_BlameByIdentifier_Handler, - }, - { - MethodName: "GetAllBlameRecords", - Handler: _Query_GetAllBlameRecords_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "observer/query.proto", +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "zetachain.zetacore.observer.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "zetachain.zetacore.observer.QueryParamsResponse") + proto.RegisterType((*QueryBallotByIdentifierRequest)(nil), "zetachain.zetacore.observer.QueryBallotByIdentifierRequest") + proto.RegisterType((*VoterList)(nil), "zetachain.zetacore.observer.VoterList") + proto.RegisterType((*QueryBallotByIdentifierResponse)(nil), "zetachain.zetacore.observer.QueryBallotByIdentifierResponse") + proto.RegisterType((*QueryObserversByChainRequest)(nil), "zetachain.zetacore.observer.QueryObserversByChainRequest") + proto.RegisterType((*QueryObserversByChainResponse)(nil), "zetachain.zetacore.observer.QueryObserversByChainResponse") + proto.RegisterType((*QueryAllObserverMappersRequest)(nil), "zetachain.zetacore.observer.QueryAllObserverMappersRequest") + proto.RegisterType((*QueryAllObserverMappersResponse)(nil), "zetachain.zetacore.observer.QueryAllObserverMappersResponse") + proto.RegisterType((*QuerySupportedChains)(nil), "zetachain.zetacore.observer.QuerySupportedChains") + proto.RegisterType((*QuerySupportedChainsResponse)(nil), "zetachain.zetacore.observer.QuerySupportedChainsResponse") + proto.RegisterType((*QueryGetCoreParamsForChainRequest)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest") + proto.RegisterType((*QueryGetCoreParamsForChainResponse)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse") + proto.RegisterType((*QueryGetCoreParamsRequest)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsRequest") + proto.RegisterType((*QueryGetCoreParamsResponse)(nil), "zetachain.zetacore.observer.QueryGetCoreParamsResponse") + proto.RegisterType((*QueryGetNodeAccountRequest)(nil), "zetachain.zetacore.observer.QueryGetNodeAccountRequest") + proto.RegisterType((*QueryGetNodeAccountResponse)(nil), "zetachain.zetacore.observer.QueryGetNodeAccountResponse") + proto.RegisterType((*QueryAllNodeAccountRequest)(nil), "zetachain.zetacore.observer.QueryAllNodeAccountRequest") + proto.RegisterType((*QueryAllNodeAccountResponse)(nil), "zetachain.zetacore.observer.QueryAllNodeAccountResponse") + proto.RegisterType((*QueryGetPermissionFlagsRequest)(nil), "zetachain.zetacore.observer.QueryGetPermissionFlagsRequest") + proto.RegisterType((*QueryGetPermissionFlagsResponse)(nil), "zetachain.zetacore.observer.QueryGetPermissionFlagsResponse") + proto.RegisterType((*QueryGetKeygenRequest)(nil), "zetachain.zetacore.observer.QueryGetKeygenRequest") + proto.RegisterType((*QueryGetKeygenResponse)(nil), "zetachain.zetacore.observer.QueryGetKeygenResponse") + proto.RegisterType((*QueryShowObserverCountRequest)(nil), "zetachain.zetacore.observer.QueryShowObserverCountRequest") + proto.RegisterType((*QueryShowObserverCountResponse)(nil), "zetachain.zetacore.observer.QueryShowObserverCountResponse") + proto.RegisterType((*QueryBlameByIdentifierRequest)(nil), "zetachain.zetacore.observer.QueryBlameByIdentifierRequest") + proto.RegisterType((*QueryBlameByIdentifierResponse)(nil), "zetachain.zetacore.observer.QueryBlameByIdentifierResponse") + proto.RegisterType((*QueryAllBlameRecordsRequest)(nil), "zetachain.zetacore.observer.QueryAllBlameRecordsRequest") + proto.RegisterType((*QueryAllBlameRecordsResponse)(nil), "zetachain.zetacore.observer.QueryAllBlameRecordsResponse") } -func (m *QueryParamsRequest) 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 init() { proto.RegisterFile("observer/query.proto", fileDescriptor_dcb801e455adaee4) } + +var fileDescriptor_dcb801e455adaee4 = []byte{ + // 1502 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x5f, 0x6f, 0x1b, 0xc5, + 0x17, 0xcd, 0x26, 0x6d, 0x7e, 0xbf, 0x4c, 0x9a, 0x26, 0x99, 0xa6, 0x6d, 0x70, 0x5a, 0x27, 0x4c, + 0x69, 0xeb, 0x26, 0xad, 0xb7, 0x71, 0x25, 0xa0, 0x4d, 0xd3, 0x12, 0x87, 0x36, 0xf4, 0x7f, 0x71, + 0xa1, 0x20, 0x84, 0x30, 0x6b, 0x7b, 0xe2, 0x2c, 0xac, 0x77, 0xdc, 0xdd, 0x4d, 0x5a, 0x53, 0x45, + 0x20, 0x3e, 0x41, 0x25, 0x24, 0xbe, 0x05, 0x3c, 0xf4, 0x81, 0x17, 0xc4, 0x0b, 0x2f, 0xf4, 0x09, + 0x15, 0x21, 0x21, 0x1e, 0x10, 0x42, 0x09, 0x1f, 0x04, 0xed, 0xcc, 0x9d, 0xdd, 0xf5, 0xfe, 0xf3, + 0x3a, 0x4f, 0xde, 0xbd, 0x33, 0xe7, 0xde, 0x73, 0x66, 0x66, 0xe7, 0x1e, 0x19, 0x4d, 0xb1, 0x9a, + 0x4d, 0xad, 0x2d, 0x6a, 0xa9, 0x8f,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xe5, 0x1d, 0x34, 0xea, 0x8a, 0xae, 0x76, 0x5d, + 0x19, 0xa7, 0x53, 0x97, 0xc5, 0xcf, 0x56, 0x41, 0x75, 0xef, 0x99, 0xcc, 0xa0, 0x57, 0xa2, 0xf5, + 0xe4, 0x2e, 0x7d, 0x86, 0x72, 0x71, 0x83, 0x40, 0xe2, 0x76, 0x1c, 0x89, 0x85, 0x8c, 0x24, 0xf8, + 0x47, 0x16, 0x24, 0x52, 0xf2, 0x6b, 0xdd, 0x65, 0x0d, 0xba, 0x22, 0x6e, 0x76, 0xb9, 0x60, 0x53, + 0x68, 0xbf, 0x6e, 0x36, 0xe8, 0x13, 0x38, 0xb1, 0xe2, 0x85, 0xe8, 0x68, 0x26, 0x16, 0x03, 0x04, + 0x6f, 0xa2, 0xd1, 0x40, 0x18, 0x08, 0x16, 0x52, 0x09, 0x06, 0xd3, 0x04, 0xc1, 0xa4, 0x01, 0xf4, + 0x56, 0x0c, 0x23, 0x86, 0xde, 0x75, 0x84, 0xfc, 0xae, 0x00, 0x85, 0x4e, 0x15, 0x45, 0x0b, 0x29, + 0xba, 0x2d, 0xa4, 0x28, 0x9a, 0x2b, 0xb4, 0x90, 0xe2, 0x7d, 0xad, 0x49, 0x01, 0x5b, 0x09, 0x20, + 0xc9, 0x73, 0x05, 0x14, 0x85, 0xcb, 0x24, 0x29, 0x1a, 0xda, 0xb3, 0x22, 0xbc, 0xd6, 0xc5, 0x79, + 0x10, 0x8e, 0x50, 0x2f, 0xce, 0x82, 0x48, 0x17, 0x69, 0xf9, 0xb5, 0xaf, 0x51, 0xe7, 0xbe, 0xd7, + 0x4c, 0xaf, 0xbb, 0xbd, 0x54, 0x9e, 0xa3, 0x2f, 0xe1, 0x6b, 0x8f, 0x9b, 0x01, 0xca, 0x3e, 0x46, + 0xe3, 0xa1, 0x21, 0x58, 0xc6, 0xf4, 0x6b, 0x36, 0x84, 0x81, 0x8e, 0x18, 0x4e, 0x45, 0x8e, 0xa2, + 0xc3, 0x92, 0xc0, 0x2d, 0xde, 0xa2, 0x25, 0xb3, 0xf7, 0xd1, 0x91, 0xf0, 0x00, 0x10, 0x5a, 0x42, + 0xc3, 0x22, 0x92, 0xa9, 0x21, 0x03, 0x18, 0x20, 0x64, 0x16, 0xee, 0xcf, 0x07, 0x1b, 0xec, 0xb1, + 0xbc, 0x8f, 0x56, 0x03, 0x07, 0x86, 0x7c, 0xa5, 0xc0, 0xa2, 0xc5, 0xcc, 0x00, 0x02, 0x9f, 0xa0, + 0x43, 0x86, 0x66, 0x3b, 0x55, 0xef, 0x12, 0x0c, 0x9e, 0xe2, 0x62, 0x2a, 0x9b, 0xdb, 0x9a, 0xed, + 0x74, 0x27, 0x9d, 0x34, 0xc2, 0x21, 0x72, 0x13, 0x38, 0x96, 0x5d, 0xaf, 0x14, 0xe7, 0x16, 0xce, + 0xa0, 0x09, 0xee, 0xa3, 0xa2, 0x66, 0x61, 0x9c, 0xc7, 0x03, 0x5e, 0xa1, 0x26, 0xad, 0x47, 0x34, + 0x17, 0xa8, 0x79, 0x0b, 0x8d, 0x08, 0x90, 0xb9, 0xce, 0x40, 0x03, 0x49, 0x6f, 0x75, 0xee, 0xec, + 0x8a, 0x0f, 0x22, 0xc7, 0xfd, 0x4f, 0x43, 0x8c, 0xd1, 0x3a, 0xb3, 0x1a, 0xde, 0x19, 0xfb, 0x14, + 0xae, 0xef, 0xc8, 0x70, 0x3c, 0x81, 0xa1, 0xbe, 0x09, 0x94, 0x76, 0xa7, 0xd0, 0x7e, 0x5e, 0x02, + 0x3f, 0x53, 0xd0, 0xb0, 0xb8, 0xb6, 0xb0, 0x9a, 0x9a, 0x23, 0xea, 0xff, 0x72, 0xe7, 0xb3, 0x03, + 0x04, 0x73, 0x72, 0xe2, 0xeb, 0xdf, 0xff, 0xfd, 0x66, 0xf0, 0x38, 0x9e, 0x51, 0xdd, 0xf9, 0xe7, + 0x38, 0x54, 0x0d, 0xd9, 0x69, 0xfc, 0x87, 0x82, 0x70, 0xd4, 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a8, 0xdb, 0xf8, 0x27, 0x05, 0xe1, 0x35, 0xea, 0x84, + 0x6c, 0x20, 0xce, 0xf6, 0xbd, 0xc5, 0x18, 0xcb, 0x2c, 0x3d, 0x2a, 0xc1, 0x73, 0x92, 0x12, 0x17, + 0x74, 0x16, 0xcf, 0x27, 0xde, 0x89, 0x6e, 0x73, 0x15, 0x1a, 0x2c, 0x81, 0x2d, 0xdf, 0x78, 0xb1, + 0x93, 0x57, 0x5e, 0xee, 0xe4, 0x95, 0x7f, 0x76, 0xf2, 0xca, 0xb3, 0xdd, 0xfc, 0xc0, 0xcb, 0xdd, + 0xfc, 0xc0, 0x9f, 0xbb, 0xf9, 0x81, 0x8f, 0xd4, 0xa6, 0xee, 0x6c, 0x6c, 0xd6, 0x8a, 0x75, 0xd6, + 0x8a, 0xdd, 0xea, 0x27, 0x7e, 0x6a, 0xa7, 0xd3, 0xa6, 0x76, 0x6d, 0x98, 0xff, 0x0f, 0x79, 0xe1, + 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x07, 0xa4, 0xa7, 0xe3, 0x15, 0x00, 0x00, } -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a list of VoterByIdentifier items. + BallotByIdentifier(ctx context.Context, in *QueryBallotByIdentifierRequest, opts ...grpc.CallOption) (*QueryBallotByIdentifierResponse, error) + // Queries a list of ObserversByChainAndType items. + ObserversByChain(ctx context.Context, in *QueryObserversByChainRequest, opts ...grpc.CallOption) (*QueryObserversByChainResponse, error) + AllObserverMappers(ctx context.Context, in *QueryAllObserverMappersRequest, opts ...grpc.CallOption) (*QueryAllObserverMappersResponse, error) + SupportedChains(ctx context.Context, in *QuerySupportedChains, opts ...grpc.CallOption) (*QuerySupportedChainsResponse, error) + // Queries a list of GetClientParamsForChain items. + GetCoreParamsForChain(ctx context.Context, in *QueryGetCoreParamsForChainRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsForChainResponse, error) + // Queries a list of GetCoreParams items. + GetCoreParams(ctx context.Context, in *QueryGetCoreParamsRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsResponse, error) + // Queries a nodeAccount by index. + NodeAccount(ctx context.Context, in *QueryGetNodeAccountRequest, opts ...grpc.CallOption) (*QueryGetNodeAccountResponse, error) + // Queries a list of nodeAccount items. + NodeAccountAll(ctx context.Context, in *QueryAllNodeAccountRequest, opts ...grpc.CallOption) (*QueryAllNodeAccountResponse, error) + PermissionFlags(ctx context.Context, in *QueryGetPermissionFlagsRequest, opts ...grpc.CallOption) (*QueryGetPermissionFlagsResponse, error) + // Queries a keygen by index. + Keygen(ctx context.Context, in *QueryGetKeygenRequest, opts ...grpc.CallOption) (*QueryGetKeygenResponse, error) + // Queries a list of ShowObserverCount items. + ShowObserverCount(ctx context.Context, in *QueryShowObserverCountRequest, opts ...grpc.CallOption) (*QueryShowObserverCountResponse, error) + // Queries a list of VoterByIdentifier items. + BlameByIdentifier(ctx context.Context, in *QueryBlameByIdentifierRequest, opts ...grpc.CallOption) (*QueryBlameByIdentifierResponse, error) + // Queries a list of VoterByIdentifier items. + GetAllBlameRecords(ctx context.Context, in *QueryAllBlameRecordsRequest, opts ...grpc.CallOption) (*QueryAllBlameRecordsResponse, error) } -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type queryClient struct { + cc grpc1.ClientConn } -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/Params", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) BallotByIdentifier(ctx context.Context, in *QueryBallotByIdentifierRequest, opts ...grpc.CallOption) (*QueryBallotByIdentifierResponse, error) { + out := new(QueryBallotByIdentifierResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/BallotByIdentifier", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) +func (c *queryClient) ObserversByChain(ctx context.Context, in *QueryObserversByChainRequest, opts ...grpc.CallOption) (*QueryObserversByChainResponse, error) { + out := new(QueryObserversByChainResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/ObserversByChain", in, out, opts...) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + return out, nil } -func (m *QueryBallotByIdentifierRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) AllObserverMappers(ctx context.Context, in *QueryAllObserverMappersRequest, opts ...grpc.CallOption) (*QueryAllObserverMappersResponse, error) { + out := new(QueryAllObserverMappersResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/AllObserverMappers", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QueryBallotByIdentifierRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryBallotByIdentifierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BallotIdentifier) > 0 { - i -= len(m.BallotIdentifier) - copy(dAtA[i:], m.BallotIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BallotIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VoterList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) SupportedChains(ctx context.Context, in *QuerySupportedChains, opts ...grpc.CallOption) (*QuerySupportedChainsResponse, error) { + out := new(QuerySupportedChainsResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/SupportedChains", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *VoterList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VoterList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.VoteType != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.VoteType)) - i-- - dAtA[i] = 0x10 - } - if len(m.VoterAddress) > 0 { - i -= len(m.VoterAddress) - copy(dAtA[i:], m.VoterAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.VoterAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryBallotByIdentifierResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) GetCoreParamsForChain(ctx context.Context, in *QueryGetCoreParamsForChainRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsForChainResponse, error) { + out := new(QueryGetCoreParamsForChainResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/GetCoreParamsForChain", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *QueryBallotByIdentifierResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryBallotByIdentifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BallotStatus != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BallotStatus)) - i-- - dAtA[i] = 0x20 - } - if m.ObservationType != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ObservationType)) - i-- - dAtA[i] = 0x18 - } - if len(m.Voters) > 0 { - for iNdEx := len(m.Voters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Voters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.BallotIdentifier) > 0 { - i -= len(m.BallotIdentifier) - copy(dAtA[i:], m.BallotIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BallotIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryObserversByChainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) GetCoreParams(ctx context.Context, in *QueryGetCoreParamsRequest, opts ...grpc.CallOption) (*QueryGetCoreParamsResponse, error) { + out := new(QueryGetCoreParamsResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/GetCoreParams", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *QueryObserversByChainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return out, nil } -func (m *QueryObserversByChainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObservationChain) > 0 { - i -= len(m.ObservationChain) - copy(dAtA[i:], m.ObservationChain) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ObservationChain))) - i-- - dAtA[i] = 0xa +func (c *queryClient) NodeAccount(ctx context.Context, in *QueryGetNodeAccountRequest, opts ...grpc.CallOption) (*QueryGetNodeAccountResponse, error) { + out := new(QueryGetNodeAccountResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/NodeAccount", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryObserversByChainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) NodeAccountAll(ctx context.Context, in *QueryAllNodeAccountRequest, opts ...grpc.CallOption) (*QueryAllNodeAccountResponse, error) { + out := new(QueryAllNodeAccountResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/NodeAccountAll", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *QueryObserversByChainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return out, nil } -func (m *QueryObserversByChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Observers) > 0 { - for iNdEx := len(m.Observers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Observers[iNdEx]) - copy(dAtA[i:], m.Observers[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Observers[iNdEx]))) - i-- - dAtA[i] = 0xa - } +func (c *queryClient) PermissionFlags(ctx context.Context, in *QueryGetPermissionFlagsRequest, opts ...grpc.CallOption) (*QueryGetPermissionFlagsResponse, error) { + out := new(QueryGetPermissionFlagsResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/PermissionFlags", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QueryAllObserverMappersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) Keygen(ctx context.Context, in *QueryGetKeygenRequest, opts ...grpc.CallOption) (*QueryGetKeygenResponse, error) { + out := new(QueryGetKeygenResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/Keygen", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *QueryAllObserverMappersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllObserverMappersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil + return out, nil } -func (m *QueryAllObserverMappersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) ShowObserverCount(ctx context.Context, in *QueryShowObserverCountRequest, opts ...grpc.CallOption) (*QueryShowObserverCountResponse, error) { + out := new(QueryShowObserverCountResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/ShowObserverCount", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *QueryAllObserverMappersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return out, nil } -func (m *QueryAllObserverMappersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObserverMappers) > 0 { - for iNdEx := len(m.ObserverMappers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ObserverMappers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } +func (c *queryClient) BlameByIdentifier(ctx context.Context, in *QueryBlameByIdentifierRequest, opts ...grpc.CallOption) (*QueryBlameByIdentifierResponse, error) { + out := new(QueryBlameByIdentifierResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/BlameByIdentifier", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *QuerySupportedChains) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryClient) GetAllBlameRecords(ctx context.Context, in *QueryAllBlameRecordsRequest, opts ...grpc.CallOption) (*QueryAllBlameRecordsResponse, error) { + out := new(QueryAllBlameRecordsResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Query/GetAllBlameRecords", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *QuerySupportedChains) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a list of VoterByIdentifier items. + BallotByIdentifier(context.Context, *QueryBallotByIdentifierRequest) (*QueryBallotByIdentifierResponse, error) + // Queries a list of ObserversByChainAndType items. + ObserversByChain(context.Context, *QueryObserversByChainRequest) (*QueryObserversByChainResponse, error) + AllObserverMappers(context.Context, *QueryAllObserverMappersRequest) (*QueryAllObserverMappersResponse, error) + SupportedChains(context.Context, *QuerySupportedChains) (*QuerySupportedChainsResponse, error) + // Queries a list of GetClientParamsForChain items. + GetCoreParamsForChain(context.Context, *QueryGetCoreParamsForChainRequest) (*QueryGetCoreParamsForChainResponse, error) + // Queries a list of GetCoreParams items. + GetCoreParams(context.Context, *QueryGetCoreParamsRequest) (*QueryGetCoreParamsResponse, error) + // Queries a nodeAccount by index. + NodeAccount(context.Context, *QueryGetNodeAccountRequest) (*QueryGetNodeAccountResponse, error) + // Queries a list of nodeAccount items. + NodeAccountAll(context.Context, *QueryAllNodeAccountRequest) (*QueryAllNodeAccountResponse, error) + PermissionFlags(context.Context, *QueryGetPermissionFlagsRequest) (*QueryGetPermissionFlagsResponse, error) + // Queries a keygen by index. + Keygen(context.Context, *QueryGetKeygenRequest) (*QueryGetKeygenResponse, error) + // Queries a list of ShowObserverCount items. + ShowObserverCount(context.Context, *QueryShowObserverCountRequest) (*QueryShowObserverCountResponse, error) + // Queries a list of VoterByIdentifier items. + BlameByIdentifier(context.Context, *QueryBlameByIdentifierRequest) (*QueryBlameByIdentifierResponse, error) + // Queries a list of VoterByIdentifier items. + GetAllBlameRecords(context.Context, *QueryAllBlameRecordsRequest) (*QueryAllBlameRecordsResponse, error) } -func (m *QuerySupportedChains) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { } -func (m *QuerySupportedChainsResponse) 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 (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } - -func (m *QuerySupportedChainsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedQueryServer) BallotByIdentifier(ctx context.Context, req *QueryBallotByIdentifierRequest) (*QueryBallotByIdentifierResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BallotByIdentifier not implemented") +} +func (*UnimplementedQueryServer) ObserversByChain(ctx context.Context, req *QueryObserversByChainRequest) (*QueryObserversByChainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ObserversByChain not implemented") +} +func (*UnimplementedQueryServer) AllObserverMappers(ctx context.Context, req *QueryAllObserverMappersRequest) (*QueryAllObserverMappersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllObserverMappers not implemented") +} +func (*UnimplementedQueryServer) SupportedChains(ctx context.Context, req *QuerySupportedChains) (*QuerySupportedChainsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SupportedChains not implemented") +} +func (*UnimplementedQueryServer) GetCoreParamsForChain(ctx context.Context, req *QueryGetCoreParamsForChainRequest) (*QueryGetCoreParamsForChainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCoreParamsForChain not implemented") +} +func (*UnimplementedQueryServer) GetCoreParams(ctx context.Context, req *QueryGetCoreParamsRequest) (*QueryGetCoreParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCoreParams not implemented") +} +func (*UnimplementedQueryServer) NodeAccount(ctx context.Context, req *QueryGetNodeAccountRequest) (*QueryGetNodeAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NodeAccount not implemented") +} +func (*UnimplementedQueryServer) NodeAccountAll(ctx context.Context, req *QueryAllNodeAccountRequest) (*QueryAllNodeAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NodeAccountAll not implemented") +} +func (*UnimplementedQueryServer) PermissionFlags(ctx context.Context, req *QueryGetPermissionFlagsRequest) (*QueryGetPermissionFlagsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PermissionFlags not implemented") +} +func (*UnimplementedQueryServer) Keygen(ctx context.Context, req *QueryGetKeygenRequest) (*QueryGetKeygenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Keygen not implemented") +} +func (*UnimplementedQueryServer) ShowObserverCount(ctx context.Context, req *QueryShowObserverCountRequest) (*QueryShowObserverCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShowObserverCount not implemented") +} +func (*UnimplementedQueryServer) BlameByIdentifier(ctx context.Context, req *QueryBlameByIdentifierRequest) (*QueryBlameByIdentifierResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BlameByIdentifier not implemented") +} +func (*UnimplementedQueryServer) GetAllBlameRecords(ctx context.Context, req *QueryAllBlameRecordsRequest) (*QueryAllBlameRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllBlameRecords not implemented") } -func (m *QuerySupportedChainsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Chains) > 0 { - for iNdEx := len(m.Chains) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Chains[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) } -func (m *QueryGetCoreParamsForChainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *QueryGetCoreParamsForChainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsForChainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChainID != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ChainID)) - i-- - dAtA[i] = 0x8 +func _Query_BallotByIdentifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBallotByIdentifierRequest) + if err := dec(in); err != nil { + return nil, err } - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(QueryServer).BallotByIdentifier(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/BallotByIdentifier", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BallotByIdentifier(ctx, req.(*QueryBallotByIdentifierRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsForChainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Query_ObserversByChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryObserversByChainRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(QueryServer).ObserversByChain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/ObserversByChain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ObserversByChain(ctx, req.(*QueryObserversByChainRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsForChainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Query_AllObserverMappers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllObserverMappersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllObserverMappers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/AllObserverMappers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllObserverMappers(ctx, req.(*QueryAllObserverMappersRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsForChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CoreParams != nil { - { - size, err := m.CoreParams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func _Query_SupportedChains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySupportedChains) + if err := dec(in); err != nil { + return nil, err } - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(QueryServer).SupportedChains(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/SupportedChains", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SupportedChains(ctx, req.(*QuerySupportedChains)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Query_GetCoreParamsForChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetCoreParamsForChainRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(QueryServer).GetCoreParamsForChain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/GetCoreParamsForChain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetCoreParamsForChain(ctx, req.(*QueryGetCoreParamsForChainRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _Query_GetCoreParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetCoreParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetCoreParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/GetCoreParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetCoreParams(ctx, req.(*QueryGetCoreParamsRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func _Query_NodeAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetNodeAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NodeAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/NodeAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NodeAccount(ctx, req.(*QueryGetNodeAccountRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _Query_NodeAccountAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllNodeAccountRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(QueryServer).NodeAccountAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/NodeAccountAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NodeAccountAll(ctx, req.(*QueryAllNodeAccountRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *QueryGetCoreParamsResponse) MarshalTo(dAtA []byte) (int, error) { +func _Query_PermissionFlags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPermissionFlagsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PermissionFlags(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/PermissionFlags", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PermissionFlags(ctx, req.(*QueryGetPermissionFlagsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Keygen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetKeygenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Keygen(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/Keygen", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Keygen(ctx, req.(*QueryGetKeygenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ShowObserverCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryShowObserverCountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ShowObserverCount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/ShowObserverCount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ShowObserverCount(ctx, req.(*QueryShowObserverCountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_BlameByIdentifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBlameByIdentifierRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BlameByIdentifier(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/BlameByIdentifier", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BlameByIdentifier(ctx, req.(*QueryBlameByIdentifierRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetAllBlameRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllBlameRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetAllBlameRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Query/GetAllBlameRecords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetAllBlameRecords(ctx, req.(*QueryAllBlameRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "zetachain.zetacore.observer.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "BallotByIdentifier", + Handler: _Query_BallotByIdentifier_Handler, + }, + { + MethodName: "ObserversByChain", + Handler: _Query_ObserversByChain_Handler, + }, + { + MethodName: "AllObserverMappers", + Handler: _Query_AllObserverMappers_Handler, + }, + { + MethodName: "SupportedChains", + Handler: _Query_SupportedChains_Handler, + }, + { + MethodName: "GetCoreParamsForChain", + Handler: _Query_GetCoreParamsForChain_Handler, + }, + { + MethodName: "GetCoreParams", + Handler: _Query_GetCoreParams_Handler, + }, + { + MethodName: "NodeAccount", + Handler: _Query_NodeAccount_Handler, + }, + { + MethodName: "NodeAccountAll", + Handler: _Query_NodeAccountAll_Handler, + }, + { + MethodName: "PermissionFlags", + Handler: _Query_PermissionFlags_Handler, + }, + { + MethodName: "Keygen", + Handler: _Query_Keygen_Handler, + }, + { + MethodName: "ShowObserverCount", + Handler: _Query_ShowObserverCount_Handler, + }, + { + MethodName: "BlameByIdentifier", + Handler: _Query_BlameByIdentifier_Handler, + }, + { + MethodName: "GetAllBlameRecords", + Handler: _Query_GetAllBlameRecords_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "observer/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetCoreParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.CoreParams != nil { - { - size, err := m.CoreParams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *QueryBlameByIdentifierRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1826,27 +2020,30 @@ func (m *QueryBlameByIdentifierRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryBlameByIdentifierRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryBlameByIdentifierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.BlameIdentifier) > 0 { - i -= len(m.BlameIdentifier) - copy(dAtA[i:], m.BlameIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.BlameIdentifier))) - i-- - dAtA[i] = 0xa + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryBlameByIdentifierResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryBallotByIdentifierRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1856,32 +2053,27 @@ func (m *QueryBlameByIdentifierResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryBlameByIdentifierResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryBallotByIdentifierRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryBlameByIdentifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryBallotByIdentifierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlameInfo != nil { - { - size, err := m.BlameInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if len(m.BallotIdentifier) > 0 { + i -= len(m.BallotIdentifier) + copy(dAtA[i:], m.BallotIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BallotIdentifier))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryAllBlameRecordsRequest) Marshal() (dAtA []byte, err error) { +func (m *VoterList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1891,20 +2083,32 @@ func (m *QueryAllBlameRecordsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllBlameRecordsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *VoterList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllBlameRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *VoterList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.VoteType != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.VoteType)) + i-- + dAtA[i] = 0x10 + } + if len(m.VoterAddress) > 0 { + i -= len(m.VoterAddress) + copy(dAtA[i:], m.VoterAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.VoterAddress))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *QueryAllBlameRecordsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryBallotByIdentifierResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1914,20 +2118,30 @@ func (m *QueryAllBlameRecordsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllBlameRecordsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryBallotByIdentifierResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllBlameRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryBallotByIdentifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.BlameInfo) > 0 { - for iNdEx := len(m.BlameInfo) - 1; iNdEx >= 0; iNdEx-- { + if m.BallotStatus != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BallotStatus)) + i-- + dAtA[i] = 0x20 + } + if m.ObservationType != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ObservationType)) + i-- + dAtA[i] = 0x18 + } + if len(m.Voters) > 0 { + for iNdEx := len(m.Voters) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.BlameInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Voters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1935,277 +2149,1789 @@ func (m *QueryAllBlameRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, e i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } } + if len(m.BallotIdentifier) > 0 { + i -= len(m.BallotIdentifier) + copy(dAtA[i:], m.BallotIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BallotIdentifier))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryObserversByChainRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n +func (m *QueryObserversByChainRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryBallotByIdentifierRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryObserversByChainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.BallotIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.ObservationChain) > 0 { + i -= len(m.ObservationChain) + copy(dAtA[i:], m.ObservationChain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ObservationChain))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *VoterList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VoterAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.VoteType != 0 { - n += 1 + sovQuery(uint64(m.VoteType)) +func (m *QueryObserversByChainResponse) 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 n + return dAtA[:n], nil } -func (m *QueryBallotByIdentifierResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryObserversByChainResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryObserversByChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.BallotIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if len(m.Voters) > 0 { - for _, e := range m.Voters { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Observers) > 0 { + for iNdEx := len(m.Observers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Observers[iNdEx]) + copy(dAtA[i:], m.Observers[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Observers[iNdEx]))) + i-- + dAtA[i] = 0xa } } - if m.ObservationType != 0 { - n += 1 + sovQuery(uint64(m.ObservationType)) - } - if m.BallotStatus != 0 { - n += 1 + sovQuery(uint64(m.BallotStatus)) - } - return n + return len(dAtA) - i, nil } -func (m *QueryObserversByChainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ObservationChain) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) +func (m *QueryAllObserverMappersRequest) 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 n + return dAtA[:n], nil } -func (m *QueryObserversByChainResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Observers) > 0 { - for _, s := range m.Observers { - l = len(s) - n += 1 + l + sovQuery(uint64(l)) - } - } - return n +func (m *QueryAllObserverMappersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllObserverMappersRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryAllObserverMappersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *QueryAllObserverMappersResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryAllObserverMappersResponse) 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 *QueryAllObserverMappersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllObserverMappersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if len(m.ObserverMappers) > 0 { - for _, e := range m.ObserverMappers { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + for iNdEx := len(m.ObserverMappers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ObserverMappers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } } - return n + return len(dAtA) - i, nil } -func (m *QuerySupportedChains) Size() (n int) { - if m == nil { - return 0 +func (m *QuerySupportedChains) 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 *QuerySupportedChains) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySupportedChains) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *QuerySupportedChainsResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QuerySupportedChainsResponse) 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 *QuerySupportedChainsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySupportedChainsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if len(m.Chains) > 0 { - for _, e := range m.Chains { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + for iNdEx := len(m.Chains) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Chains[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } } - return n + return len(dAtA) - i, nil } -func (m *QueryGetCoreParamsForChainRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGetCoreParamsForChainRequest) 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 *QueryGetCoreParamsForChainRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetCoreParamsForChainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.ChainID != 0 { - n += 1 + sovQuery(uint64(m.ChainID)) - } - return n + i = encodeVarintQuery(dAtA, i, uint64(m.ChainID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *QueryGetCoreParamsForChainResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGetCoreParamsForChainResponse) 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 *QueryGetCoreParamsForChainResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetCoreParamsForChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.CoreParams != nil { - l = m.CoreParams.Size() - n += 1 + l + sovQuery(uint64(l)) + { + size, err := m.CoreParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *QueryGetCoreParamsRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGetCoreParamsRequest) 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 *QueryGetCoreParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetCoreParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + return len(dAtA) - i, nil } -func (m *QueryGetCoreParamsResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGetCoreParamsResponse) 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 *QueryGetCoreParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetCoreParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.CoreParams != nil { - l = m.CoreParams.Size() - n += 1 + l + sovQuery(uint64(l)) + { + size, err := m.CoreParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *QueryBlameByIdentifierRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGetNodeAccountRequest) 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 *QueryGetNodeAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetNodeAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.BlameIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Index) > 0 { + i -= len(m.Index) + copy(dAtA[i:], m.Index) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Index))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *QueryBlameByIdentifierResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGetNodeAccountResponse) 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 *QueryGetNodeAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetNodeAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.BlameInfo != nil { - l = m.BlameInfo.Size() - n += 1 + l + sovQuery(uint64(l)) + if m.NodeAccount != nil { + { + size, err := m.NodeAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *QueryAllBlameRecordsRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryAllNodeAccountRequest) 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 *QueryAllNodeAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllNodeAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - return n + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryAllBlameRecordsResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryAllNodeAccountResponse) 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 *QueryAllNodeAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllNodeAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.NodeAccount) > 0 { + for iNdEx := len(m.NodeAccount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NodeAccount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPermissionFlagsRequest) 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 *QueryGetPermissionFlagsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPermissionFlagsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.BlameInfo) > 0 { - for _, e := range m.BlameInfo { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *QueryGetPermissionFlagsResponse) 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 *QueryGetPermissionFlagsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPermissionFlagsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.PermissionFlags.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGetKeygenRequest) 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 *QueryGetKeygenRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetKeygenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryGetKeygenResponse) 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 *QueryGetKeygenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetKeygenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Keygen != nil { + { + size, err := m.Keygen.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryShowObserverCountRequest) 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 *QueryShowObserverCountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryShowObserverCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryShowObserverCountResponse) 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 *QueryShowObserverCountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryShowObserverCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastObserverCount != nil { + { + size, err := m.LastObserverCount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBlameByIdentifierRequest) 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 *QueryBlameByIdentifierRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBlameByIdentifierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlameIdentifier) > 0 { + i -= len(m.BlameIdentifier) + copy(dAtA[i:], m.BlameIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.BlameIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBlameByIdentifierResponse) 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 *QueryBlameByIdentifierResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBlameByIdentifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlameInfo != nil { + { + size, err := m.BlameInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllBlameRecordsRequest) 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 *QueryAllBlameRecordsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllBlameRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAllBlameRecordsResponse) 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 *QueryAllBlameRecordsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllBlameRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlameInfo) > 0 { + for iNdEx := len(m.BlameInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BlameInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryBallotByIdentifierRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BallotIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *VoterList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VoterAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.VoteType != 0 { + n += 1 + sovQuery(uint64(m.VoteType)) + } + return n +} + +func (m *QueryBallotByIdentifierResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BallotIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Voters) > 0 { + for _, e := range m.Voters { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.ObservationType != 0 { + n += 1 + sovQuery(uint64(m.ObservationType)) + } + if m.BallotStatus != 0 { + n += 1 + sovQuery(uint64(m.BallotStatus)) + } + return n +} + +func (m *QueryObserversByChainRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ObservationChain) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryObserversByChainResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Observers) > 0 { + for _, s := range m.Observers { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryAllObserverMappersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllObserverMappersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ObserverMappers) > 0 { + for _, e := range m.ObserverMappers { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QuerySupportedChains) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QuerySupportedChainsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Chains) > 0 { + for _, e := range m.Chains { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryGetCoreParamsForChainRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainID != 0 { + n += 1 + sovQuery(uint64(m.ChainID)) + } + return n +} + +func (m *QueryGetCoreParamsForChainResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CoreParams != nil { + l = m.CoreParams.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetCoreParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryGetCoreParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CoreParams != nil { + l = m.CoreParams.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetNodeAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Index) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetNodeAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NodeAccount != nil { + l = m.NodeAccount.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllNodeAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllNodeAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NodeAccount) > 0 { + for _, e := range m.NodeAccount { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetPermissionFlagsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryGetPermissionFlagsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PermissionFlags.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGetKeygenRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryGetKeygenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Keygen != nil { + l = m.Keygen.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryShowObserverCountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryShowObserverCountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LastObserverCount != nil { + l = m.LastObserverCount.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBlameByIdentifierRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BlameIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBlameByIdentifierResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlameInfo != nil { + l = m.BlameInfo.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllBlameRecordsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllBlameRecordsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.BlameInfo) > 0 { + for _, e := range m.BlameInfo { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *QueryParamsResponse) 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", 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.Params.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 *QueryBallotByIdentifierRequest) 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: QueryBallotByIdentifierRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBallotByIdentifierRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BallotIdentifier", 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.BallotIdentifier = 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 (m *VoterList) 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: VoterList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VoterList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VoterAddress", 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.VoterAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) + } + m.VoteType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VoteType |= VoteType(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *QueryBallotByIdentifierResponse) 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: QueryBallotByIdentifierResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryBallotByIdentifierResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BallotIdentifier", 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.BallotIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Voters", 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 + } + m.Voters = append(m.Voters, &VoterList{}) + if err := m.Voters[len(m.Voters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservationType", wireType) + } + m.ObservationType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObservationType |= ObservationType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BallotStatus", wireType) + } + m.BallotStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BallotStatus |= BallotStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *QueryObserversByChainRequest) 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: QueryObserversByChainRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryObserversByChainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservationChain", 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.ObservationChain = 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 (m *QueryObserversByChainResponse) 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: QueryObserversByChainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryObserversByChainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Observers", 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.Observers = append(m.Observers, 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 } } - return n -} -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllObserverMappersRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2228,10 +3954,10 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllObserverMappersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllObserverMappersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2255,7 +3981,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllObserverMappersResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2278,15 +4004,15 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllObserverMappersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllObserverMappersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObserverMappers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2313,7 +4039,8 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.ObserverMappers = append(m.ObserverMappers, &ObserverMapper{}) + if err := m.ObserverMappers[len(m.ObserverMappers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2338,7 +4065,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBallotByIdentifierRequest) Unmarshal(dAtA []byte) error { +func (m *QuerySupportedChains) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2361,17 +4088,67 @@ func (m *QueryBallotByIdentifierRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryBallotByIdentifierRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySupportedChains: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBallotByIdentifierRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySupportedChains: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *QuerySupportedChainsResponse) 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: QuerySupportedChainsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySupportedChainsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BallotIdentifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Chains", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2381,23 +4158,25 @@ func (m *QueryBallotByIdentifierRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.BallotIdentifier = string(dAtA[iNdEx:postIndex]) + m.Chains = append(m.Chains, &common.Chain{}) + if err := m.Chains[len(m.Chains)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2420,7 +4199,7 @@ func (m *QueryBallotByIdentifierRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *VoterList) Unmarshal(dAtA []byte) error { +func (m *QueryGetCoreParamsForChainRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2443,17 +4222,86 @@ func (m *VoterList) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VoterList: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetCoreParamsForChainRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VoterList: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetCoreParamsForChainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) + } + m.ChainID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainID |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *QueryGetCoreParamsForChainResponse) 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: QueryGetCoreParamsForChainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetCoreParamsForChainResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VoterAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CoreParams", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2463,43 +4311,78 @@ func (m *VoterList) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.VoterAddress = string(dAtA[iNdEx:postIndex]) + if m.CoreParams == nil { + m.CoreParams = &CoreParams{} + } + if err := m.CoreParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) + 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 *QueryGetCoreParamsRequest) 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 } - m.VoteType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VoteType |= VoteType(b&0x7F) << shift - if b < 0x80 { - break - } + 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: QueryGetCoreParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetCoreParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2521,7 +4404,7 @@ func (m *VoterList) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBallotByIdentifierResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetCoreParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2544,47 +4427,15 @@ func (m *QueryBallotByIdentifierResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryBallotByIdentifierResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetCoreParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBallotByIdentifierResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetCoreParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BallotIdentifier", 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.BallotIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Voters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CoreParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2611,49 +4462,13 @@ func (m *QueryBallotByIdentifierResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Voters = append(m.Voters, &VoterList{}) - if err := m.Voters[len(m.Voters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.CoreParams == nil { + m.CoreParams = &CoreParamsList{} + } + if err := m.CoreParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservationType", wireType) - } - m.ObservationType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservationType |= ObservationType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BallotStatus", wireType) - } - m.BallotStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BallotStatus |= BallotStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2675,7 +4490,7 @@ func (m *QueryBallotByIdentifierResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryObserversByChainRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGetNodeAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2698,15 +4513,15 @@ func (m *QueryObserversByChainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryObserversByChainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetNodeAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryObserversByChainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetNodeAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservationChain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2734,7 +4549,7 @@ func (m *QueryObserversByChainRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ObservationChain = string(dAtA[iNdEx:postIndex]) + m.Index = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2757,7 +4572,7 @@ func (m *QueryObserversByChainRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryObserversByChainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetNodeAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2780,17 +4595,17 @@ func (m *QueryObserversByChainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryObserversByChainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetNodeAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryObserversByChainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetNodeAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Observers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NodeAccount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2800,23 +4615,27 @@ func (m *QueryObserversByChainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Observers = append(m.Observers, string(dAtA[iNdEx:postIndex])) + if m.NodeAccount == nil { + m.NodeAccount = &NodeAccount{} + } + if err := m.NodeAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2839,7 +4658,7 @@ func (m *QueryObserversByChainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllObserverMappersRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllNodeAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2862,12 +4681,48 @@ func (m *QueryAllObserverMappersRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllObserverMappersRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllNodeAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllObserverMappersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllNodeAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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 m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2889,7 +4744,7 @@ func (m *QueryAllObserverMappersRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllObserverMappersResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllNodeAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2912,15 +4767,15 @@ func (m *QueryAllObserverMappersResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllObserverMappersResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllNodeAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllObserverMappersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllNodeAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObserverMappers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NodeAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2947,8 +4802,44 @@ func (m *QueryAllObserverMappersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ObserverMappers = append(m.ObserverMappers, &ObserverMapper{}) - if err := m.ObserverMappers[len(m.ObserverMappers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.NodeAccount = append(m.NodeAccount, &NodeAccount{}) + if err := m.NodeAccount[len(m.NodeAccount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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 m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2973,7 +4864,7 @@ func (m *QueryAllObserverMappersResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QuerySupportedChains) Unmarshal(dAtA []byte) error { +func (m *QueryGetPermissionFlagsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2996,10 +4887,10 @@ func (m *QuerySupportedChains) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QuerySupportedChains: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetPermissionFlagsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySupportedChains: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetPermissionFlagsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3023,7 +4914,7 @@ func (m *QuerySupportedChains) Unmarshal(dAtA []byte) error { } return nil } -func (m *QuerySupportedChainsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetPermissionFlagsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3046,15 +4937,15 @@ func (m *QuerySupportedChainsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QuerySupportedChainsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetPermissionFlagsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySupportedChainsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetPermissionFlagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chains", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PermissionFlags", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3081,8 +4972,7 @@ func (m *QuerySupportedChainsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Chains = append(m.Chains, &common.Chain{}) - if err := m.Chains[len(m.Chains)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PermissionFlags.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3107,7 +4997,7 @@ func (m *QuerySupportedChainsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetCoreParamsForChainRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGetKeygenRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3130,31 +5020,12 @@ func (m *QueryGetCoreParamsForChainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetCoreParamsForChainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetKeygenRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetCoreParamsForChainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetKeygenRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) - } - m.ChainID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChainID |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3176,7 +5047,7 @@ func (m *QueryGetCoreParamsForChainRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetCoreParamsForChainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetKeygenResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3199,15 +5070,15 @@ func (m *QueryGetCoreParamsForChainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetCoreParamsForChainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetKeygenResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetCoreParamsForChainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetKeygenResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoreParams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keygen", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3234,10 +5105,10 @@ func (m *QueryGetCoreParamsForChainResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CoreParams == nil { - m.CoreParams = &CoreParams{} + if m.Keygen == nil { + m.Keygen = &Keygen{} } - if err := m.CoreParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Keygen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3262,7 +5133,7 @@ func (m *QueryGetCoreParamsForChainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetCoreParamsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryShowObserverCountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3285,10 +5156,10 @@ func (m *QueryGetCoreParamsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetCoreParamsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryShowObserverCountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetCoreParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryShowObserverCountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3312,7 +5183,7 @@ func (m *QueryGetCoreParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetCoreParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryShowObserverCountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3335,15 +5206,15 @@ func (m *QueryGetCoreParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetCoreParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryShowObserverCountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetCoreParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryShowObserverCountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoreParams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LastObserverCount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3370,10 +5241,10 @@ func (m *QueryGetCoreParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CoreParams == nil { - m.CoreParams = &CoreParamsList{} + if m.LastObserverCount == nil { + m.LastObserverCount = &LastObserverCount{} } - if err := m.CoreParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.LastObserverCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/observer/types/query.pb.gw.go b/x/observer/types/query.pb.gw.go index aeabcc3a20..92fdab1d8d 100644 --- a/x/observer/types/query.pb.gw.go +++ b/x/observer/types/query.pb.gw.go @@ -267,6 +267,150 @@ func local_request_Query_GetCoreParams_0(ctx context.Context, marshaler runtime. } +func request_Query_NodeAccount_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetNodeAccountRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["index"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "index") + } + + protoReq.Index, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "index", err) + } + + msg, err := client.NodeAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NodeAccount_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetNodeAccountRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["index"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "index") + } + + protoReq.Index, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "index", err) + } + + msg, err := server.NodeAccount(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_NodeAccountAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_NodeAccountAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllNodeAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_NodeAccountAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.NodeAccountAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NodeAccountAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllNodeAccountRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_NodeAccountAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.NodeAccountAll(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PermissionFlags_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPermissionFlagsRequest + var metadata runtime.ServerMetadata + + msg, err := client.PermissionFlags(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PermissionFlags_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPermissionFlagsRequest + var metadata runtime.ServerMetadata + + msg, err := server.PermissionFlags(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Keygen_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetKeygenRequest + var metadata runtime.ServerMetadata + + msg, err := client.Keygen(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Keygen_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetKeygenRequest + var metadata runtime.ServerMetadata + + msg, err := server.Keygen(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_ShowObserverCount_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryShowObserverCountRequest + var metadata runtime.ServerMetadata + + msg, err := client.ShowObserverCount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ShowObserverCount_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryShowObserverCountRequest + var metadata runtime.ServerMetadata + + msg, err := server.ShowObserverCount(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_BlameByIdentifier_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryBlameByIdentifierRequest var metadata runtime.ServerMetadata @@ -506,6 +650,121 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_NodeAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NodeAccount_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NodeAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NodeAccountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NodeAccountAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NodeAccountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PermissionFlags_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PermissionFlags_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PermissionFlags_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Keygen_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Keygen_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Keygen_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ShowObserverCount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ShowObserverCount_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ShowObserverCount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_BlameByIdentifier_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -733,6 +992,106 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_NodeAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NodeAccount_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NodeAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NodeAccountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NodeAccountAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NodeAccountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PermissionFlags_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PermissionFlags_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PermissionFlags_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Keygen_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Keygen_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Keygen_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ShowObserverCount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_ShowObserverCount_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ShowObserverCount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_BlameByIdentifier_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -787,9 +1146,19 @@ var ( pattern_Query_SupportedChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "observer", "supportedChains"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetCoreParamsForChain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"zeta-chain", "zetacore", "observer", "get_client_params_for_chain", "chainID"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetCoreParamsForChain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "observer", "get_client_params_for_chain", "chainID"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_GetCoreParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "observer", "get_core_params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetCoreParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"zeta-chain", "zetacore", "observer", "get_core_params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_NodeAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "observer", "nodeAccount", "index"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NodeAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "observer", "nodeAccount"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PermissionFlags_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "observer", "permission_flags"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Keygen_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "observer", "keygen"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ShowObserverCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"zeta-chain", "zetacore", "observer", "show_observer_count"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_BlameByIdentifier_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "observer", "blame_by_identifier", "blame_identifier"}, "", runtime.AssumeColonVerbOpt(false))) @@ -811,6 +1180,16 @@ var ( forward_Query_GetCoreParams_0 = runtime.ForwardResponseMessage + forward_Query_NodeAccount_0 = runtime.ForwardResponseMessage + + forward_Query_NodeAccountAll_0 = runtime.ForwardResponseMessage + + forward_Query_PermissionFlags_0 = runtime.ForwardResponseMessage + + forward_Query_Keygen_0 = runtime.ForwardResponseMessage + + forward_Query_ShowObserverCount_0 = runtime.ForwardResponseMessage + forward_Query_BlameByIdentifier_0 = runtime.ForwardResponseMessage forward_Query_GetAllBlameRecords_0 = runtime.ForwardResponseMessage diff --git a/x/observer/types/suported_chains.pb.go b/x/observer/types/suported_chains.pb.go deleted file mode 100644 index 04667361f5..0000000000 --- a/x/observer/types/suported_chains.pb.go +++ /dev/null @@ -1,329 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: observer/suported_chains.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - common "github.com/zeta-chain/zetacore/common" - 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 SupportedChains struct { - ChainList []*common.Chain `protobuf:"bytes,1,rep,name=chain_list,json=chainList,proto3" json:"chain_list,omitempty"` -} - -func (m *SupportedChains) Reset() { *m = SupportedChains{} } -func (m *SupportedChains) String() string { return proto.CompactTextString(m) } -func (*SupportedChains) ProtoMessage() {} -func (*SupportedChains) Descriptor() ([]byte, []int) { - return fileDescriptor_785486dfb91bc68c, []int{0} -} -func (m *SupportedChains) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SupportedChains) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SupportedChains.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 *SupportedChains) XXX_Merge(src proto.Message) { - xxx_messageInfo_SupportedChains.Merge(m, src) -} -func (m *SupportedChains) XXX_Size() int { - return m.Size() -} -func (m *SupportedChains) XXX_DiscardUnknown() { - xxx_messageInfo_SupportedChains.DiscardUnknown(m) -} - -var xxx_messageInfo_SupportedChains proto.InternalMessageInfo - -func (m *SupportedChains) GetChainList() []*common.Chain { - if m != nil { - return m.ChainList - } - return nil -} - -func init() { - proto.RegisterType((*SupportedChains)(nil), "zetachain.zetacore.observer.SupportedChains") -} - -func init() { proto.RegisterFile("observer/suported_chains.proto", fileDescriptor_785486dfb91bc68c) } - -var fileDescriptor_785486dfb91bc68c = []byte{ - // 200 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4f, 0x2a, 0x4e, - 0x2d, 0x2a, 0x4b, 0x2d, 0xd2, 0x2f, 0x2e, 0x2d, 0xc8, 0x2f, 0x2a, 0x49, 0x4d, 0x89, 0x4f, 0xce, - 0x48, 0xcc, 0xcc, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, 0x49, - 0x04, 0x8b, 0xe8, 0x81, 0x59, 0xf9, 0x45, 0xa9, 0x7a, 0x30, 0x2d, 0x52, 0xe2, 0x70, 0xcd, 0x30, - 0x06, 0x44, 0x97, 0x94, 0x70, 0x72, 0x7e, 0x6e, 0x6e, 0x7e, 0x9e, 0x3e, 0x84, 0x82, 0x08, 0x2a, - 0xd9, 0x73, 0xf1, 0x07, 0x97, 0x16, 0x40, 0x2c, 0x71, 0x06, 0xdb, 0x21, 0xa4, 0xc3, 0xc5, 0x05, - 0x36, 0x3b, 0x3e, 0x27, 0xb3, 0xb8, 0x44, 0x82, 0x51, 0x81, 0x59, 0x83, 0xdb, 0x88, 0x57, 0x0f, - 0xaa, 0x0b, 0xac, 0x26, 0x88, 0x13, 0xac, 0xc0, 0x27, 0xb3, 0xb8, 0xc4, 0xc9, 0xf3, 0xc4, 0x23, - 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, - 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0x40, - 0x3a, 0xf5, 0x41, 0xce, 0xd4, 0x05, 0x6b, 0xd2, 0x87, 0xb9, 0x58, 0xbf, 0x02, 0xee, 0x40, 0xfd, - 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x93, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x1b, 0x79, 0xec, 0x64, 0xff, 0x00, 0x00, 0x00, -} - -func (m *SupportedChains) 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 *SupportedChains) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SupportedChains) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChainList) > 0 { - for iNdEx := len(m.ChainList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ChainList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSuportedChains(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintSuportedChains(dAtA []byte, offset int, v uint64) int { - offset -= sovSuportedChains(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *SupportedChains) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ChainList) > 0 { - for _, e := range m.ChainList { - l = e.Size() - n += 1 + l + sovSuportedChains(uint64(l)) - } - } - return n -} - -func sovSuportedChains(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSuportedChains(x uint64) (n int) { - return sovSuportedChains(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *SupportedChains) 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 ErrIntOverflowSuportedChains - } - 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: SupportedChains: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SupportedChains: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSuportedChains - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSuportedChains - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSuportedChains - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainList = append(m.ChainList, &common.Chain{}) - if err := m.ChainList[len(m.ChainList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSuportedChains(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSuportedChains - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSuportedChains(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, ErrIntOverflowSuportedChains - } - 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, ErrIntOverflowSuportedChains - } - 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, ErrIntOverflowSuportedChains - } - 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, ErrInvalidLengthSuportedChains - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSuportedChains - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSuportedChains - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthSuportedChains = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSuportedChains = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSuportedChains = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/observer/types/tx.pb.go b/x/observer/types/tx.pb.go index 8217e07180..662a7d754c 100644 --- a/x/observer/types/tx.pb.go +++ b/x/observer/types/tx.pb.go @@ -309,6 +309,182 @@ func (m *MsgAddBlameVoteResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddBlameVoteResponse proto.InternalMessageInfo +type MsgUpdatePermissionFlags struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + IsInboundEnabled bool `protobuf:"varint,3,opt,name=isInboundEnabled,proto3" json:"isInboundEnabled,omitempty"` +} + +func (m *MsgUpdatePermissionFlags) Reset() { *m = MsgUpdatePermissionFlags{} } +func (m *MsgUpdatePermissionFlags) String() string { return proto.CompactTextString(m) } +func (*MsgUpdatePermissionFlags) ProtoMessage() {} +func (*MsgUpdatePermissionFlags) Descriptor() ([]byte, []int) { + return fileDescriptor_1bcd40fa296a2b1d, []int{6} +} +func (m *MsgUpdatePermissionFlags) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdatePermissionFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdatePermissionFlags.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 *MsgUpdatePermissionFlags) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdatePermissionFlags.Merge(m, src) +} +func (m *MsgUpdatePermissionFlags) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdatePermissionFlags) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdatePermissionFlags.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdatePermissionFlags proto.InternalMessageInfo + +func (m *MsgUpdatePermissionFlags) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdatePermissionFlags) GetIsInboundEnabled() bool { + if m != nil { + return m.IsInboundEnabled + } + return false +} + +type MsgUpdatePermissionFlagsResponse struct { +} + +func (m *MsgUpdatePermissionFlagsResponse) Reset() { *m = MsgUpdatePermissionFlagsResponse{} } +func (m *MsgUpdatePermissionFlagsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdatePermissionFlagsResponse) ProtoMessage() {} +func (*MsgUpdatePermissionFlagsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1bcd40fa296a2b1d, []int{7} +} +func (m *MsgUpdatePermissionFlagsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdatePermissionFlagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdatePermissionFlagsResponse.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 *MsgUpdatePermissionFlagsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdatePermissionFlagsResponse.Merge(m, src) +} +func (m *MsgUpdatePermissionFlagsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdatePermissionFlagsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdatePermissionFlagsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdatePermissionFlagsResponse proto.InternalMessageInfo + +type MsgUpdateKeygen struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Block int64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *MsgUpdateKeygen) Reset() { *m = MsgUpdateKeygen{} } +func (m *MsgUpdateKeygen) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateKeygen) ProtoMessage() {} +func (*MsgUpdateKeygen) Descriptor() ([]byte, []int) { + return fileDescriptor_1bcd40fa296a2b1d, []int{8} +} +func (m *MsgUpdateKeygen) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateKeygen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateKeygen.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 *MsgUpdateKeygen) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateKeygen.Merge(m, src) +} +func (m *MsgUpdateKeygen) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateKeygen) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateKeygen.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateKeygen proto.InternalMessageInfo + +func (m *MsgUpdateKeygen) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdateKeygen) GetBlock() int64 { + if m != nil { + return m.Block + } + return 0 +} + +type MsgUpdateKeygenResponse struct { +} + +func (m *MsgUpdateKeygenResponse) Reset() { *m = MsgUpdateKeygenResponse{} } +func (m *MsgUpdateKeygenResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateKeygenResponse) ProtoMessage() {} +func (*MsgUpdateKeygenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1bcd40fa296a2b1d, []int{9} +} +func (m *MsgUpdateKeygenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateKeygenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateKeygenResponse.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 *MsgUpdateKeygenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateKeygenResponse.Merge(m, src) +} +func (m *MsgUpdateKeygenResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateKeygenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateKeygenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateKeygenResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgUpdateCoreParams)(nil), "zetachain.zetacore.observer.MsgUpdateCoreParams") proto.RegisterType((*MsgUpdateCoreParamsResponse)(nil), "zetachain.zetacore.observer.MsgUpdateCoreParamsResponse") @@ -316,40 +492,51 @@ func init() { proto.RegisterType((*MsgAddObserverResponse)(nil), "zetachain.zetacore.observer.MsgAddObserverResponse") proto.RegisterType((*MsgAddBlameVote)(nil), "zetachain.zetacore.observer.MsgAddBlameVote") proto.RegisterType((*MsgAddBlameVoteResponse)(nil), "zetachain.zetacore.observer.MsgAddBlameVoteResponse") + proto.RegisterType((*MsgUpdatePermissionFlags)(nil), "zetachain.zetacore.observer.MsgUpdatePermissionFlags") + proto.RegisterType((*MsgUpdatePermissionFlagsResponse)(nil), "zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse") + proto.RegisterType((*MsgUpdateKeygen)(nil), "zetachain.zetacore.observer.MsgUpdateKeygen") + proto.RegisterType((*MsgUpdateKeygenResponse)(nil), "zetachain.zetacore.observer.MsgUpdateKeygenResponse") } func init() { proto.RegisterFile("observer/tx.proto", fileDescriptor_1bcd40fa296a2b1d) } var fileDescriptor_1bcd40fa296a2b1d = []byte{ - // 445 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00,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0x9b, 0xa8, 0xbb, 0x9d, 0xe7, 0xeb, 0x74, 0x9b, 0xcc, 0x93, 0xe1, 0xf7, 0x89, 0x4b, 0xae, - 0x27, 0x2e, 0xf9, 0x39, 0x71, 0xc9, 0xd7, 0xa9, 0xdb, 0xb9, 0x9e, 0xba, 0x9d, 0x1f, 0x53, 0xb7, - 0xf3, 0x8e, 0xa6, 0x99, 0xba, 0xfc, 0x10, 0xf9, 0x31, 0xe6, 0x74, 0xe6, 0xf7, 0x54, 0x5b, 0x53, - 0x63, 0x4d, 0xc7, 0x74, 0xf1, 0x0b, 0xb9, 0x2a, 0xb9, 0x8c, 0x6e, 0xe9, 0x0f, 0xf7, 0xe8, 0x77, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xa3, 0x62, 0x49, 0x5b, 0x04, 0x00, 0x00, + // 553 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x8e, 0x09, 0xd0, 0x76, 0x82, 0xda, 0xe2, 0xb6, 0xd4, 0x75, 0x85, 0x15, 0xf9, 0x42, 0x04, + 0xc1, 0x46, 0x29, 0x48, 0x5c, 0x38, 0xa4, 0x08, 0x50, 0x84, 0xa2, 0x56, 0x16, 0xf4, 0xc0, 0xa5, + 0xf8, 0x67, 0xeb, 0x5a, 0xc4, 0x3b, 0xd6, 0xae, 0x8b, 0x12, 0x0e, 0xdc, 0x39, 0x20, 0xf1, 0x02, + 0xbc, 0x0f, 0xc7, 0x1e, 0x39, 0xa2, 0xe4, 0xce, 0x33, 0xa0, 0xac, 0xe3, 0x6d, 0x92, 0x06, 0x37, + 0xe9, 0x29, 0xb3, 0xb3, 0xf3, 0xfd, 0xcc, 0xec, 0x24, 0x81, 0xbb, 0xe8, 0x71, 0xc2, 0x3e, 0x13, + 0x66, 0xa7, 0x5d, 0x2b, 0x61, 0x98, 0x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05, 0x1b, 0x9f, 0xc1, 0xc4, 0x5e, 0xd5, 0xe7, 0xa3, 0xcb, 0xaa, 0xaf, + 0x9e, 0xc1, 0xac, 0x85, 0xdb, 0x6f, 0xfd, 0xea, 0x1b, 0xca, 0x79, 0xdf, 0x50, 0xfe, 0xf4, 0x0d, + 0xe5, 0xc7, 0xc0, 0x28, 0x9d, 0x0f, 0x8c, 0xd2, 0xef, 0x81, 0x51, 0xfa, 0x60, 0x87, 0x51, 0x7a, + 0x7a, 0xe6, 0x59, 0x3e, 0xc6, 0xf6, 0x90, 0xef, 0xb1, 0xa0, 0xb6, 0x73, 0x6a, 0xbb, 0x6b, 0x5f, + 0xfc, 0x55, 0xf4, 0x12, 0xc2, 0xbd, 0xdb, 0xe2, 0x07, 0x7a, 0xef, 0x5f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xb2, 0x45, 0x5d, 0xc6, 0x43, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -367,6 +554,8 @@ type MsgClient interface { AddObserver(ctx context.Context, in *MsgAddObserver, opts ...grpc.CallOption) (*MsgAddObserverResponse, error) UpdateCoreParams(ctx context.Context, in *MsgUpdateCoreParams, opts ...grpc.CallOption) (*MsgUpdateCoreParamsResponse, error) AddBlameVote(ctx context.Context, in *MsgAddBlameVote, opts ...grpc.CallOption) (*MsgAddBlameVoteResponse, error) + UpdatePermissionFlags(ctx context.Context, in *MsgUpdatePermissionFlags, opts ...grpc.CallOption) (*MsgUpdatePermissionFlagsResponse, error) + UpdateKeygen(ctx context.Context, in *MsgUpdateKeygen, opts ...grpc.CallOption) (*MsgUpdateKeygenResponse, error) } type msgClient struct { @@ -404,11 +593,31 @@ func (c *msgClient) AddBlameVote(ctx context.Context, in *MsgAddBlameVote, opts return out, nil } +func (c *msgClient) UpdatePermissionFlags(ctx context.Context, in *MsgUpdatePermissionFlags, opts ...grpc.CallOption) (*MsgUpdatePermissionFlagsResponse, error) { + out := new(MsgUpdatePermissionFlagsResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Msg/UpdatePermissionFlags", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateKeygen(ctx context.Context, in *MsgUpdateKeygen, opts ...grpc.CallOption) (*MsgUpdateKeygenResponse, error) { + out := new(MsgUpdateKeygenResponse) + err := c.cc.Invoke(ctx, "/zetachain.zetacore.observer.Msg/UpdateKeygen", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { AddObserver(context.Context, *MsgAddObserver) (*MsgAddObserverResponse, error) UpdateCoreParams(context.Context, *MsgUpdateCoreParams) (*MsgUpdateCoreParamsResponse, error) AddBlameVote(context.Context, *MsgAddBlameVote) (*MsgAddBlameVoteResponse, error) + UpdatePermissionFlags(context.Context, *MsgUpdatePermissionFlags) (*MsgUpdatePermissionFlagsResponse, error) + UpdateKeygen(context.Context, *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -424,6 +633,12 @@ func (*UnimplementedMsgServer) UpdateCoreParams(ctx context.Context, req *MsgUpd func (*UnimplementedMsgServer) AddBlameVote(ctx context.Context, req *MsgAddBlameVote) (*MsgAddBlameVoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddBlameVote not implemented") } +func (*UnimplementedMsgServer) UpdatePermissionFlags(ctx context.Context, req *MsgUpdatePermissionFlags) (*MsgUpdatePermissionFlagsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePermissionFlags not implemented") +} +func (*UnimplementedMsgServer) UpdateKeygen(ctx context.Context, req *MsgUpdateKeygen) (*MsgUpdateKeygenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateKeygen not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -483,6 +698,42 @@ func _Msg_AddBlameVote_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Msg_UpdatePermissionFlags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdatePermissionFlags) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdatePermissionFlags(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Msg/UpdatePermissionFlags", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdatePermissionFlags(ctx, req.(*MsgUpdatePermissionFlags)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateKeygen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateKeygen) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateKeygen(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/zetachain.zetacore.observer.Msg/UpdateKeygen", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateKeygen(ctx, req.(*MsgUpdateKeygen)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "zetachain.zetacore.observer.Msg", HandlerType: (*MsgServer)(nil), @@ -499,6 +750,14 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "AddBlameVote", Handler: _Msg_AddBlameVote_Handler, }, + { + MethodName: "UpdatePermissionFlags", + Handler: _Msg_UpdatePermissionFlags_Handler, + }, + { + MethodName: "UpdateKeygen", + Handler: _Msg_UpdateKeygen_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "observer/tx.proto", @@ -702,6 +961,127 @@ func (m *MsgAddBlameVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *MsgUpdatePermissionFlags) 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 *MsgUpdatePermissionFlags) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdatePermissionFlags) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsInboundEnabled { + i-- + if m.IsInboundEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdatePermissionFlagsResponse) 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 *MsgUpdatePermissionFlagsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdatePermissionFlagsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgUpdateKeygen) 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 *MsgUpdateKeygen) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateKeygen) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Block != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Block)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateKeygenResponse) 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 *MsgUpdateKeygenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateKeygenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -796,11 +1176,61 @@ func (m *MsgAddBlameVoteResponse) Size() (n int) { return n } -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (m *MsgUpdatePermissionFlags) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.IsInboundEnabled { + n += 2 + } + return n +} + +func (m *MsgUpdatePermissionFlagsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateKeygen) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Block != 0 { + n += 1 + sovTx(uint64(m.Block)) + } + return n +} + +func (m *MsgUpdateKeygenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgUpdateCoreParams) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1327,6 +1757,309 @@ func (m *MsgAddBlameVoteResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgUpdatePermissionFlags) 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 ErrIntOverflowTx + } + 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: MsgUpdatePermissionFlags: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdatePermissionFlags: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsInboundEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsInboundEnabled = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdatePermissionFlagsResponse) 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 ErrIntOverflowTx + } + 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: MsgUpdatePermissionFlagsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdatePermissionFlagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateKeygen) 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 ErrIntOverflowTx + } + 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: MsgUpdateKeygen: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateKeygen: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + m.Block = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Block |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateKeygenResponse) 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 ErrIntOverflowTx + } + 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: MsgUpdateKeygenResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateKeygenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/zetaclient/config/types.go b/zetaclient/config/types.go index 9b05f8262a..55cd4c2cf7 100644 --- a/zetaclient/config/types.go +++ b/zetaclient/config/types.go @@ -5,7 +5,6 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/rs/zerolog" "github.com/zeta-chain/zetacore/common" - crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" zetaObserverTypes "github.com/zeta-chain/zetacore/x/observer/types" ) @@ -69,7 +68,7 @@ type Config struct { LogLevel zerolog.Level LogSampler bool PreParamsPath string - Keygen crosschaintypes.Keygen + Keygen zetaObserverTypes.Keygen ChainID string ZetaCoreURL string AuthzGranter string diff --git a/zetaclient/query.go b/zetaclient/query.go index 891825a9b1..c0c4745041 100644 --- a/zetaclient/query.go +++ b/zetaclient/query.go @@ -14,11 +14,11 @@ import ( "time" ) -func (b *ZetaCoreBridge) GetInboundPermissions() (types.PermissionFlags, error) { - client := types.NewQueryClient(b.grpcConn) - resp, err := client.PermissionFlags(context.Background(), &types.QueryGetPermissionFlagsRequest{}) +func (b *ZetaCoreBridge) GetInboundPermissions() (zetaObserverTypes.PermissionFlags, error) { + client := zetaObserverTypes.NewQueryClient(b.grpcConn) + resp, err := client.PermissionFlags(context.Background(), &zetaObserverTypes.QueryGetPermissionFlagsRequest{}) if err != nil { - return types.PermissionFlags{}, err + return zetaObserverTypes.PermissionFlags{}, err } return resp.PermissionFlags, nil @@ -166,9 +166,9 @@ func (b *ZetaCoreBridge) GetNonceByChain(chain common.Chain) (*types.ChainNonces return resp.ChainNonces, nil } -func (b *ZetaCoreBridge) GetAllNodeAccounts() ([]*types.NodeAccount, error) { - client := types.NewQueryClient(b.grpcConn) - resp, err := client.NodeAccountAll(context.Background(), &types.QueryAllNodeAccountRequest{}) +func (b *ZetaCoreBridge) GetAllNodeAccounts() ([]*zetaObserverTypes.NodeAccount, error) { + client := zetaObserverTypes.NewQueryClient(b.grpcConn) + resp, err := client.NodeAccountAll(context.Background(), &zetaObserverTypes.QueryAllNodeAccountRequest{}) if err != nil { return nil, err } @@ -176,9 +176,9 @@ func (b *ZetaCoreBridge) GetAllNodeAccounts() ([]*types.NodeAccount, error) { return resp.NodeAccount, nil } -func (b *ZetaCoreBridge) GetKeyGen() (*types.Keygen, error) { - client := types.NewQueryClient(b.grpcConn) - resp, err := client.Keygen(context.Background(), &types.QueryGetKeygenRequest{}) +func (b *ZetaCoreBridge) GetKeyGen() (*zetaObserverTypes.Keygen, error) { + client := zetaObserverTypes.NewQueryClient(b.grpcConn) + resp, err := client.Keygen(context.Background(), &zetaObserverTypes.QueryGetKeygenRequest{}) if err != nil { //log.Error().Err(err).Msg("query GetKeyGen error") return nil, err